Skip to content

Update type hint in io/formats/format.py #57249

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

Merged
merged 3 commits into from
Feb 4, 2024

Conversation

MarkBekooy
Copy link
Contributor

The brackets around the type hint broke the libcst parser. Since the brackets are not necessary for the type hint, they have been removed

The brackets around the type hint broke the libcst parser. Since the brackets are not necessary for the type hint, they have been removed
Type annotation changes are not added to change log
@simonjayhawkins simonjayhawkins added the Typing type annotations, mypy/pyright type checking label Feb 4, 2024
@simonjayhawkins simonjayhawkins added this to the 3.0 milestone Feb 4, 2024
@simonjayhawkins
Copy link
Member

@twoertwein i've milestoned 3.0 since we normally don't backport typing changes and the problem code has not been modified recently but if the superfluous parenthesis breaks things feel feel to change to 2.2.1 as it would probably do no harm.

@twoertwein twoertwein merged commit b8b096e into pandas-dev:main Feb 4, 2024
@twoertwein
Copy link
Member

Thank you @FrostMegaByte!

I'm with you, @simonjayhawkins, on not backporting (it doesn't impact major typecheckers and seems more like a libcst issue), but I have no strong opinion.

pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
* Update type hint in format.py

The brackets around the type hint broke the libcst parser. Since the brackets are not necessary for the type hint, they have been removed

* Update v2.2.1.rst

* Undo update to v2.2.1.rst

Type annotation changes are not added to change log
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.

BUG: breaking type annotation of format_percentiles function in io/formats/format.py
3 participants