-
-
Notifications
You must be signed in to change notification settings - Fork 147
Type NAType
#1348
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
base: main
Are you sure you want to change the base?
Type NAType
#1348
Conversation
@MarcoGorelli pine me when I should review |
sure @Dr-Irv , happy for you to take a look, thanks! |
…ndex` as they return `NotImplemented`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the orthogonal issue, can you add a comment in #1347 that says that this file will have to be updated as part of addressing that issue?
Otherwise looks good. Just some small stuff
tests/test_natype.py
Outdated
# bug upstream: https://github.com/pandas-dev/pandas/issues/62196 | ||
# check( | ||
# assert_type( | ||
# divmod(na, s_int), | ||
# tuple[pd.Series, pd.Series], | ||
# ), | ||
# tuple, | ||
# ) | ||
# check( | ||
# assert_type( | ||
# divmod(na, idx_int), | ||
# tuple[pd.Index, pd.Index], | ||
# ), | ||
# tuple, | ||
# ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm OK to leave this in, with the #pyright: ignore
, because it works with mypy
. Then just make the comment about how pyright
has the bug.
# assert_type(divmod(s_int, na), tuple[pd.Series, pd.Series]), | ||
# tuple, | ||
# ) | ||
# https://github.com/pandas-dev/pandas-stubs/issues/1347 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't the bug upstream in pandas
, not the orthogonal issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd say this is both, here
This has uncovered a couple of bugs:
so some tests have their assertions ignored for now, but i've linked to them in those places