From: Scott Gasch Date: Mon, 7 Mar 2022 07:13:50 +0000 (-0800) Subject: IntEnum -> Enum to fix printing of enum values. X-Git-Url: https://wannabe.guru.org/gitweb/?a=commitdiff_plain;h=d8a4cb8c9f641d2e64f7416a35fd33fded92d67a;p=python_utils.git IntEnum -> Enum to fix printing of enum values. --- diff --git a/type/locations.py b/type/locations.py index 718a5f1..e02b8ab 100644 --- a/type/locations.py +++ b/type/locations.py @@ -6,7 +6,7 @@ import enum @enum.unique -class Location(enum.IntEnum): +class Location(enum.Enum): """An enum to represent locations.""" UNKNOWN = 0 diff --git a/type/people.py b/type/people.py index 3a6f743..d942ebb 100644 --- a/type/people.py +++ b/type/people.py @@ -5,7 +5,7 @@ import enum -class Person(enum.IntEnum): +class Person(enum.Enum): """An enum to represent people.""" UNKNOWN = 0