enthought / traits

Observable typed attributes for Python classes
Other
421 stars 85 forks source link

Drop support for Python 3.7 #1769

Closed mdickinson closed 3 months ago

mdickinson commented 5 months ago

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.

mdickinson commented 5 months ago

Of particular note:

mdickinson commented 5 months ago
  • 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).

mdickinson commented 3 months ago

This was done in #1773.