You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The line with plus = tds + tss fails with pyright:
tdts.py:6:7 - error: Operator "+" not supported for types "TimedeltaSeries" and "TimestampSeries"
Operator "+" not supported for types "TimedeltaSeries" and "TimestampSeries" (reportGeneralTypeIssues)
But the line with plus2 = tss + tds works.
Please complete the following information:
OS: Windows 10
python version: 3.9
pyright 1.1.283
version of installed pandas-stubs 1.5.2.221124
Additional context
Need to add TimestampSeries to the argument list here:
* added 'TimestampSeries' in TimedeltaSeries in series.pyi
* added 'pd.Timestamp' as last argument to check
* changed the black version in pyproject.toml
Describe the bug
We pick up TimestampSeries + TimedeltaSeries, but not the reverse.
To Reproduce
The line with
plus = tds + tss
fails withpyright
:But the line with
plus2 = tss + tds
works.Please complete the following information:
pandas-stubs
1.5.2.221124Additional context
Need to add
TimestampSeries
to the argument list here:pandas-stubs/pandas-stubs/core/series.pyi
Line 1776 in 58416f2
The text was updated successfully, but these errors were encountered: