Skip to content

FEATURE: Start using Never as return types for disallowed operations #441

Closed
@Dr-Irv

Description

@Dr-Irv

See #432 where methods were added to TimestampSeries and TimedeltaSeries that return Never, which pyright will pick up as invalid.

We could add more of these to disallow certain operations between incompatible types, and then use the TYPE_CHECKING_INVALID_USAGE pattern to check for these.

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