As time goes by, I think it is time to push the minimal required python version once more. Why? Mainly new features for type hinting and code quality. Also 3.9 is already EOL and 3.10 is due in Oct 2026.
Actual benefits:
- Drop typing.Union / typing.Optional and use native hinting
- Structural Pattern Matching with match (PEP636): The library is full of if/elif chains dispatching on integer command bytes, OD object types, and NMT states. match makes this explicit, exhaustive, and readable
- TypeAlias for Explicit Type Aliases (PEP 613): Unambiguous and readable type aliases
As time goes by, I think it is time to push the minimal required python version once more. Why? Mainly new features for type hinting and code quality. Also 3.9 is already EOL and 3.10 is due in Oct 2026.
Actual benefits: