Skip to content

TYPING: keywords in df.sort_values and sr.sort_values cannot be annotated #30451

Closed
@charlesdong1991

Description

@charlesdong1991

Observed in the PR #30402 and PR #27237

Annotation seems not to be able to added for sort_values. If added, error message will pop up in CI:

pandas/core/series.py:2691: error: Signature of "sort_values" incompatible with supertype "NDFrame"
pandas/core/frame.py:4701: error: Signature of "sort_values" incompatible with supertype "NDFrame"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closing CandidateMay be closeable, needs more eyeballsTypingtype annotations, mypy/pyright type checking

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions