-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TYP: misc fixes for numpy types 4 #36102
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 commentThe 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 commentThe 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. |
||
def to_datetime( # type: ignore[misc] | ||
arg: DatetimeScalar, | ||
errors: str = ..., | ||
dayfirst: bool = ..., | ||
|
@@ -567,7 +568,8 @@ def to_datetime( | |
|
||
|
||
@overload | ||
def to_datetime( | ||
# error: Overloaded function signatures 2 and 3 overlap with incompatible return types | ||
def to_datetime( # type: ignore[misc] | ||
arg: "Series", | ||
errors: str = ..., | ||
dayfirst: bool = ..., | ||
|
@@ -585,7 +587,7 @@ def to_datetime( | |
|
||
@overload | ||
def to_datetime( | ||
arg: Union[List, Tuple], | ||
arg: Union[List, Tuple, ArrayLike], | ||
errors: str = ..., | ||
dayfirst: bool = ..., | ||
yearfirst: bool = ..., | ||
|
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?