Simplify Enum

This commit is contained in:
Daniel Rojas 2021-10-16 22:58:47 +02:00 committed by Laurier Loiselle
parent 28aa7f0420
commit abd53ec404
No known key found for this signature in database
GPG Key ID: 345920CC72089A3F

View File

@ -40,9 +40,7 @@ OneOrMoreWires = Union[Wire, Tuple[Wire, ...]] # One or a tuple of wires
MetadataKeys = PlainText # Literal['title', 'description', 'notes', ...]
class Side(Enum):
LEFT = auto()
RIGHT = auto()
Side = Enum("Side", "LEFT RIGHT")
class Metadata(dict):