-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
TST,TYP: Bump mypy to 0.981 #22360
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
TST,TYP: Bump mypy to 0.981 #22360
Conversation
complex(np.bytes_("1")) # E: No overload variant | ||
|
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.
Minor regression due to python/typeshed#8473, i.e. any object that defines __float__
is now treated as valid by the complex
constructor (even though this will raise during runtime as being a bytes
subclass takes priority).
Nothing we can really do here I'm afraid.
@@ -20,7 +20,7 @@ AR_double: npt.NDArray[np.double] | |||
AR_longdouble: npt.NDArray[np.longdouble] | |||
AR_void: npt.NDArray[np.void] | |||
|
|||
pointer: ctypes.pointer[Any] | |||
pointer: ctypes._Pointer[Any] |
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.
Adapt to the ctypes.pointer
changes in python/typeshed#8446.
@@ -7,7 +7,7 @@ reveal_type(a.base) # E: ndarray[Any, dtype[str_]] | |||
reveal_type(a.copy()) # E: ndarray[Any, dtype[str_]] | |||
reveal_type(a.coords) # E: tuple[builtins.int, ...] | |||
reveal_type(a.index) # E: int | |||
reveal_type(iter(a)) # E: flatiter[ndarray[Any, dtype[str_]]] | |||
reveal_type(iter(a)) # E: Any |
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.
A minor regression introduced by python/typeshed#7817.
Seems to be a mypy bug as pylance does produce the expected result here.
Mypy seems to use |
Thanks @BvB93 |
Bump mypy to version 0.981.
Marked as backport due as the test set required a few updates.