Browse Source

Enum

pull/3/head
Jure Šorn 6 years ago
parent
commit
0ed7700044
1 changed files with 1 additions and 1 deletions
  1. 2
      README.md

2
README.md

@ -479,7 +479,7 @@ from enum import Enum, auto
class <enum_name>(Enum): class <enum_name>(Enum):
<member_name_1> = <value_1> <member_name_1> = <value_1>
<member_name_2> = <value_2>, <value_2b> <member_name_2> = <value_2>, <value_2b>
<member_name_3> = auto() # Can be used for automatic indexing.
<member_name_3> = auto() # Can be used for automatic indexing.
... ...
@classmethod @classmethod

Loading…
Cancel
Save