News for hackers. Stuff that matters.
Re:Using Enumerated Types in Python by nerdponx on Saturday June 06, 2020 @10:16PM (#23444214)
I'm not sure what you mean by "two imports".

If you define your Enum subclass in the same file, you use one import for enum.Enu. If you eschew enums and use Literal, you use one import for typing.Literal.

There are no comments on this comment yet.