Browse Source

Class

pull/3/head
Jure Šorn 5 years ago
parent
commit
4825209a07
1 changed files with 3 additions and 3 deletions
  1. 6
      README.md

6
README.md

@ -569,9 +569,9 @@ Enum
```python
from enum import Enum, auto
class <enum_name>(Enum):
<member_name_1> = <value_1>
<member_name_2> = <value_2_a>, <value_2_b>
<member_name_3> = auto() # Can be used for automatic indexing.
member_name_1 = value_1
member_name_2 = value_2_a, value_2_b
member_name_3 = auto() # Can be used for automatic indexing.
...
@classmethod

Loading…
Cancel
Save