-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
revert Timestamp and Timedelta constructors typing allowing NaTType return #48112
Conversation
@mroeschke Not sure what to do here. I think that the level of On the one hand, I will see if I can workaround those issues. |
I think the issue is that for mypy If they cannot be fixed now, it is probably best to add those files to https://github.com/pandas-dev/pandas/blob/main/pyright_reportGeneralTypeIssues.json one day when this ignore list is small enough we can add in-line ignore comments. |
Yes, that is it.
Thanks for this suggestion. Will do this in next commit. |
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.
Great that you were able to reduce the number of new files ignored by pyright's reportGeneralTypeIssues to only two!
Looks good to me, assuming the typing tests pass.
Probably the first catch of stubtest :) |
Thanks for finding that. I'll create |
@mroeschke so this is good to go. I don't know what to do about the failure with the CircleCI Pipeline |
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.
Thanks for the quick resolution @Dr-Irv! Hoping the CircleCI issue is spurious, but the important part is the typing builds passed.
…eturn (pandas-dev#48112) * revert Timestamp and Timedelta constructors typing allowing NaTType return * exclude 2 files from pyright. Fix up tz methods for NaTType * add tz and tzinfo methods * remove check that tz doesn't exist for NaT
Re discussion at #46171 (comment)
Has
Timestamp
andTimedelta
constructors return union that includesNaTType