Closed jack60612 closed 6 months ago
That would probably be sensible (Bimap was a hack before Enums were supported) but I would want to bundle with a broader release which dropped support for Python 2 & Python <3.7 (see comments on Issue #56)
nit: I feel like this issue should also be left open - @paulc
Looking at the code I'm not sure how easy it will be to replace Bimap
with enum.IntEnum
. Specifically, I'm not sure if the Bimap
fallback behaviour is replicated with an enum.
That said if we can make it work it would be good to use more "standard" components.
Hello, I was wondering if you would be open to using Enum instead of Bimap? I will happily make a PR if you are open to the change.