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

Update type hinting #1178

Open
WeilerP opened this issue Mar 20, 2024 · 3 comments
Open

Update type hinting #1178

WeilerP opened this issue Mar 20, 2024 · 3 comments
Assignees

Comments

@WeilerP
Copy link
Member

WeilerP commented Mar 20, 2024

Description

Update type hinting in functions using simplified syntax such as PEP 604 (X | Y), list[] instead of List, None instead of Optional, etc.

@WeilerP WeilerP self-assigned this Mar 20, 2024
@WeilerP
Copy link
Member Author

WeilerP commented Mar 20, 2024

Any objections, @michalk8?

@michalk8
Copy link
Collaborator

michalk8 commented Apr 5, 2024

No objections, but will requiring either dropping 3.8 as far as I know (or at least adding from __future__ import annotations).

@Zethson
Copy link
Member

Zethson commented Apr 7, 2024

Think they're actually 3.10+. Just use ruff which implements the pyupgrade rule and import from the future

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

No branches or pull requests

3 participants