Skip to content

Commit a3ebf2c

Browse files
committed
Inline
1 parent 08d4b58 commit a3ebf2c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ Direction = Enum('Direction', 'n e s w')
523523
Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3})
524524

525525
# Warning: Objects will share the objects that are initialized in the dictionary!
526-
Creature = type('Creature', (), {'position': Point(0, 0), 'direction': Direction.n})
526+
Creature = type('Creature', (), {'p': Point(0, 0), 'd': Direction.n})
527527
creature = Creature()
528528
```
529529

@@ -633,7 +633,6 @@ class <enum_name>(Enum):
633633
<member_name_1> = <value_1>
634634
<member_name_2> = <value_2_a>, <value_2_b>
635635
<member_name_3> = auto() # Can be used for automatic indexing.
636-
...
637636

638637
@classmethod
639638
def get_member_names(cls):

0 commit comments

Comments
 (0)