-
-
Notifications
You must be signed in to change notification settings - Fork 157
Drop ANN ignores from certain files in arrays #1583
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
Conversation
|
This is a subset of the changes proposed in #1568 (which did not raise any requests), added tests for some of the types. |
pandas-stubs/core/arrays/integer.pyi
Outdated
|
|
||
| if sys.version_info >= (3, 11): | ||
| def __init__( | ||
| self, values: AnyArrayLike, mask: np_1darray_bool, copy: bool = False |
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.
| self, values: AnyArrayLike, mask: np_1darray_bool, copy: bool = False | |
| self, values: AnyArrayLike, mask: np_ndarray_bool, copy: bool = False |
Wouldn't nd instead of 1d work in all versions?
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.
Arghhh I see the issue, I tried np_1darray_bool last time and not np_ndarray_bool
cmp0xff
left a comment
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.
Looks good to me. Thank you @loicdiridollou !
assert_type()to assert the type of any return value)AGENTS.md.