Skip to content

TYP: More precise NaT stubs #60003

Closed
@randolf-scholz

Description

@randolf-scholz

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

Amendment to #59996. The current stub has some imprecise typing.

Feature Description

  • inequalities do not cover comparisons of NaTType with itself.
  • addition/subtraction does not cover pd.Period and numpy types.
  • dunder methods should be marked with positional-only parameters, even if the class supports keyword usage.

Alternative Solutions

N/A

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementNeeds TriageIssue that has not been reviewed by a pandas team member

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions