Skip to content

DateOffset for weekday argument requires weekday argument from dateutil #648

@Dr-Irv

Description

@Dr-Irv

The issue is that the type specification for the weekday argument in pandas-stubs/_libs/tslibs/offsets.pyi says that weekday is an int. But it can be a weekday class or an int. See https://dateutil.readthedocs.io/en/stable/relativedelta.html To fix this, we have to make types-python-dateutil a dependency, which involves modifying pyproject.toml and takes some care.

Created a docs issue for pandas at pandas-dev/pandas#52650

Originally posted by @Dr-Irv in #645 (comment)

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