Skip to content

Push required python version to 3.10 #646

Description

@bizfsc

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions