Skip to content

[python-dateutil] should _rrulestr's typing have an overload based on forceset / compatible? #14797

@lev-blit

Description

@lev-blit

reading the implementation of _rrulestr.__call__ (internally calling _rrulestr._parse_rfc), it seems that when forceset=True (or compatible=True, since it sets forceset to True), the return type is always rrulesetand notrrule`, which is not currently reflected in the type stubs

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: improvementImprove/refactor existing annotations, other stubs issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions