X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=type%2Flocations.py;h=718a5f1edd5d277e71ff3204a7d273617d581741;hb=2e8dd08f5f4f9624facf4d38ea6b276cc8131f56;hp=24ab063a722d5b159be380ffb459cabcd5d35d23;hpb=713a609bd19d491de03debf8a4a6ddf2540b13dc;p=python_utils.git diff --git a/type/locations.py b/type/locations.py index 24ab063..718a5f1 100644 --- a/type/locations.py +++ b/type/locations.py @@ -1,10 +1,14 @@ #!/usr/bin/env python3 +"""An enum to represent locations.""" + import enum @enum.unique -class Location(enum.Enum): +class Location(enum.IntEnum): + """An enum to represent locations.""" + UNKNOWN = 0 HOUSE = 1 CABIN = 2