-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
var-annotated error for Series and Index after upgrading to 2.0.3+ #826
Comments
I can re-produce the var-annotated error for
Probably need to slightly adjust the Index overloads to return Quick note: pandas 2.1.* requires python 3.9 or newer! This also means you are not getting the latest pandas-stubs releases (they also require 3.9)! |
I am able to resolve 2.1.1 with Python 3.8 and while I plan to upgrade soon, it wouldn't help unless this gets fixed in the stubs library first. This issue affects Additional migration issues for the
|
I created a separate issue for this. #831 |
I just tried this with the latest release of the stubs (2.1.4.231218) and mypy 1.7.1, with python 3.9, and the We won't update the stubs to support older versions of python, mypy, pyright, or pandas. |
Thats understandable. I appreciate you taking the time to fix this issue. |
Describe the bug
Upgrading from 2.0.1 to 2.1.1 and now I get errors about Series and Index that aren't helpful. It should not be necessary to duplicate type hints on a local variable.
To Reproduce
pandas
example that is not properly checked by the stubs.Indicate which type checker you are using (
mypy
orpyright
).mypy
Show the error message received from that type checker while checking your example.
Please complete the following information:
pandas-stubs
The text was updated successfully, but these errors were encountered: