We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Type checking missing for Timestamp - TimestampSeries
To Reproduce
import pandas as pd ts1 = pd.to_datetime(pd.Series(["2022-03-05", "2022-03-06"])) assert isinstance(ts1.iloc[0], pd.Timestamp) one_ts = ts1.iloc[0] reveal_type(one_ts - ts1)
revealed type should be TimedeltaSeries.
TimedeltaSeries
Note that ts1 - one_ts works fine.
ts1 - one_ts
Need to add an overload in pandas-stubs/_libs/tslibs/timestamps.pyi
pandas-stubs/_libs/tslibs/timestamps.pyi
Please complete the following information:
pandas-stubs
The text was updated successfully, but these errors were encountered:
#1191
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Type checking missing for Timestamp - TimestampSeries
To Reproduce
revealed type should be
TimedeltaSeries
.Note that
ts1 - one_ts
works fine.Need to add an overload in
pandas-stubs/_libs/tslibs/timestamps.pyi
Please complete the following information:
pandas-stubs
- development copyThe text was updated successfully, but these errors were encountered: