Skip to content

Conversation

@dlech
Copy link
Member

@dlech dlech commented Oct 23, 2025

Keeping up with "recent" (4 to 5 years old) trends in Python.

dlech added 5 commits October 23, 2025 16:32
This comes with a bit of reformatting since with statements can now use
parentheses since Python 3.9.
This is the same version mentioned elsewhere in the README.
Replace `Optional[...]` with `... | None` since we now require Python 3.10+.
Replace deprecated typing Type/Dict/List/Tuple with built-in generics.
Replace typing.Union with the | operator for type hints. This is
possible now that we require Python 3.10 or later.
@dlech dlech merged commit 149b24a into pybricks:master Oct 23, 2025
6 checks passed
@dlech dlech deleted the typing-updates branch October 23, 2025 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant