Skip to content

Commit e452f0f

Browse files
committed
Inline
1 parent 2ba3d62 commit e452f0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,15 +528,15 @@ from functools import reduce
528528
### Namedtuple, Enum, Class
529529
```python
530530
from collections import namedtuple
531-
Point = namedtuple('Point', 'x y')
531+
Point = namedtuple('Point', 'x y')
532532

533533
from enum import Enum
534534
Direction = Enum('Direction', 'n e s w')
535535
Cutlery = Enum('Cutlery', {'knife': 1, 'fork': 2, 'spoon': 3})
536536

537537
# Warning: Objects will share the objects that are initialized in the dictionary!
538-
Creature = type('Creature', (), {'p': Point(0, 0), 'd': Direction.n})
539-
creature = Creature()
538+
Creature = type('Creature', (), {'p': Point(0, 0), 'd': Direction.n})
539+
creature = Creature()
540540
```
541541

542542

0 commit comments

Comments
 (0)