Skip to content

TYP: Update typing for 3.10 #61453

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

TYP: Update typing for 3.10 #61453

wants to merge 3 commits into from

Conversation

Dr-Irv
Copy link
Contributor

@Dr-Irv Dr-Irv commented May 18, 2025

  • Ran pyupgrade so that typing is updated to python 3.10 - that modified files in pandas/_libs
  • Updated pandas/_typing.py to have the following:
    • Use TypeAlias to declare all types
    • Change Type to use builtins.type
    • Remove Optional
    • Remove use of Union except for when it is used on a pandas type

@rhshadrach rhshadrach added the Typing type annotations, mypy/pyright type checking label May 19, 2025
@rhshadrach rhshadrach changed the title update typing for 3.10 TYP: Update typing for 3.10 May 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Typing type annotations, mypy/pyright type checking
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants