-
-
Notifications
You must be signed in to change notification settings - Fork 141
BUG: to_datetime
can return NaTType
#88
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
Comments
We made a conscious decision to not have out = cast(pd.Timestamp, pd.to_datetime("2022-07-05")) to force There's not a way in static typing to test if the timestamp is valid. |
@Dr-Irv why not Reading python/mypy#5090 both convinced me that |
Reasonable suggestion. Open to a PR. Have reopened the issue.
Not sure that is relevant here - I think you're referring to #82, so comment there on your perspective on this issue. |
wrong type returns
Also,
mypy
onreturns
The text was updated successfully, but these errors were encountered: