Skip to content

Check incorrect when using a TimestampSeries and YearEnd from pandas.tseries.offsets #969

@clemconv1

Description

@clemconv1

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

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

  • OS: MacOS
  • OS Version 13.5
  • python 3.9.19
  • pylance version v2024.7.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions