projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Separate box and print_box.
[python_utils.git]
/
type
/
locations.py
diff --git
a/type/locations.py
b/type/locations.py
index 744f63a3997f38b26b379b7bf25d19425ec7d2f3..718a5f1edd5d277e71ff3204a7d273617d581741 100644
(file)
--- a/
type/locations.py
+++ b/
type/locations.py
@@
-1,9
+1,14
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
+"""An enum to represent locations."""
+
import enum
import enum
+
@enum.unique
@enum.unique
-class Location(enum.Enum):
+class Location(enum.IntEnum):
+ """An enum to represent locations."""
+
UNKNOWN = 0
HOUSE = 1
CABIN = 2
UNKNOWN = 0
HOUSE = 1
CABIN = 2