-
-
Notifications
You must be signed in to change notification settings - Fork 141
mypy error when passing np.datetime64
or np.timedelta64
to pd.isna
#549
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
Comments
nph
added a commit
to intervaliq/pandas-stubs
that referenced
this issue
Feb 21, 2023
…64` (pandas-dev#549) * Fixes mypy error when passing np.datetime64/timedelta64 input to pd.isna * Update test_isna to include tests for np.datetime64/timedelta64
2 tasks
Yes, that is correct. Hopefully just adding those 2 types to |
twoertwein
pushed a commit
to twoertwein/pandas-stubs
that referenced
this issue
Apr 1, 2023
…d.isna` (pandas-dev#550) Update `IndexIterScalar` to include `np.datetime64` and `np.timedelta64` (pandas-dev#549) * Fixes mypy error when passing np.datetime64/timedelta64 input to pd.isna * Update test_isna to include tests for np.datetime64/timedelta64
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
pd.isna
does not supportnp.datetime64
andnp.timedelta64
input types.To Reproduce
mypy
output:Please complete the following information:
pandas-stubs
: 1.5.3.230214Additional context
The problem seems to be that the
IndexIterScalar
TypeAlias does not includenp.datetime64
andnp.timedelta64
. Thetest_isna
test case is also missing tests fornp.datetime64
andnp.timedelta64
input. PR with a fix hereThe text was updated successfully, but these errors were encountered: