Skip to content

MyPy doesn't recognize scalar arithmetic for pandas classes #31160

Open
@WillAyd

Description

@WillAyd

Something like:

1 + pd.Series([1])

will yield error: Unsupported operand types for + ("int" and "Series") I assume because our arithmetic ops are added at runtime and not statically. Would be nice to support this somehow though

Metadata

Metadata

Assignees

No one assigned

    Labels

    Typingtype 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