Skip to content

Ellipsis not collable error using mypy #155

Closed
@farnsworth

Description

@farnsworth

When using vectorized string methods, mypy returns the following error:
error: "ellipsis" not callable
Looking at the source code I see that in pandas-stubs/core/strings.pyi there is:

    len = ...
    lower = ...
    upper = ...
    title = ...
    capitalize = ...

To Reproduce

import pandas
pandas.Series(["hello"]).str.len()

If I run mypy on this code I get:
error: "ellipsis" not callable

Versions

  • Python 3.10.4
  • mypy 0.971
  • pandas-stubs 1.4.3.220718

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