You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A clear and concise description of what the bug is.
For the pd.DataFrame.pct_change the documentation allows the None method but the typing only supports str.
This results in an error from pyright to be raised.
To Reproduce
Provide a minimal runnable pandas example that is not properly checked by the stubs.
Indicate which type checker you are using (mypy or pyright).
Show the error message received from that type checker while checking your example.
Describe the bug
A clear and concise description of what the bug is.
For the
pd.DataFrame.pct_change
the documentation allows theNone
method but the typing only supportsstr
.This results in an error from pyright to be raised.
To Reproduce
pandas
example that is not properly checked by the stubs.mypy
orpyright
).This example will yield the error:
While the documentation allows for None:

Please complete the following information:
pandas-stubs
v2.2.2.240807Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: