Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typing updates #94

Open
LiamPattinson opened this issue Jul 15, 2024 · 0 comments
Open

Typing updates #94

LiamPattinson opened this issue Jul 15, 2024 · 0 comments
Labels
Hacktoberfest Ideal issues for Hacktoberfest

Comments

@LiamPattinson
Copy link
Contributor

As the project is for Python 3.10+, a few of the type hints could be updated to use union type expressions:

Union[int, float] -> int | float
Optional[int] -> int | None

It shouldn't make any difference to type checkers, but it seems to be the modern way of doing things, and I suppose it saves a few keystrokes.

@jatkinson1000 jatkinson1000 added the Hacktoberfest Ideal issues for Hacktoberfest label Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hacktoberfest Ideal issues for Hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants