python / typeshed

Collection of library stubs for Python, with static types
Other
4.3k stars 1.73k forks source link

Check incorrect when using a TimestampSeries and tools from pandas.tseries.offsets #12471

Closed clemconv1 closed 1 month ago

clemconv1 commented 1 month ago

It seems type annotations are wrong between a Timestamp series and tools offered by the offsets library

df["year_end"] = df["date"] + pd.tseries.offsets.YearEnd(0) is flagged with Operator "+" not supported for types "TimestampSeries" and "YearEnd"

AlexWaygood commented 1 month ago

Hi! We don't have any stubs for pandas here. Did you maybe mean to report this to the pandas-stubs project?

AlexWaygood commented 1 month ago

Closing for now, but I'm happy to reopen if this is indeed a bug report about one of the typeshed stubs packages! :)