X-Git-Url: https://wannabe.guru.org/gitweb/?a=blobdiff_plain;f=type%2Flocations.py;h=718a5f1edd5d277e71ff3204a7d273617d581741;hb=1ff5dde5b037f8da4c9d5a65e2d7ad2f6715ff60;hp=744f63a3997f38b26b379b7bf25d19425ec7d2f3;hpb=ba223f821df1e9b8abbb6f6d23d5ba92c5a70b05;p=python_utils.git diff --git a/type/locations.py b/type/locations.py index 744f63a..718a5f1 100644 --- a/type/locations.py +++ b/type/locations.py @@ -1,9 +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