Closed mdickinson closed 3 months ago
Of particular note:
Enum
values in Enum
collections, and we have special code to work around that (see safe_contains
in traits/trait_base.py
.
- Python 3.7 raises deprecation warnings for containment checks [...]
Sorry, that's bogus: we still need safe_contains
to handle the TypeError
that's raised from Python 3.8 through Python 3.11. Python 3.12 goes back to returning False
(which IMO was the correct behaviour all along).
This was done in #1773.
Python 3.7 is beyond end-of-life, and no longer supported. There are a couple of places where supporting Python 3.7 adds (fairly minor) complications to the current codebase. I'd suggest dropping support for Python 3.7 in the next feature release of Traits.