-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
TYP: misc fixes for numpy types 4 #36102
Conversation
simonjayhawkins
commented
Sep 3, 2020
_ndarray: np.ndarray | ||
@property | ||
def _ndarray(self) -> np.ndarray: | ||
raise AbstractMethodError(self) |
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.
Any reason to not prefer an abc here?
@@ -550,7 +550,8 @@ def _adjust_to_origin(arg, origin, unit): | |||
|
|||
|
|||
@overload | |||
def to_datetime( | |||
# error: Overloaded function signatures 1 and 3 overlap with incompatible return types |
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.
Hmm do you know why we are getting this error? Seems like an issue with the annotation
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.
since np.ndarray resolves to Any, this will need ignores if merging now b4 the numpy types are available. will close and include in #36092 instead.