Skip to content

mypy CI fails with geopandas error #14177

Open
@sobolevn

Description

@sobolevn

Link: https://github.com/python/typeshed/actions/runs/15279387776/job/42974250437

 testing geopandas (25 files)... failure (exit code 1)

stubs/geopandas/geopandas/geoseries.pyi:152: error: Cannot override final attribute "take" (previously declared in base class "NDFrame")  [misc]
stubs/geopandas/geopandas/geoseries.pyi:152: error: Argument 2 of "take" is incompatible with supertype "NDFrame"; supertype defines the argument type as "Literal['index', 0] | Literal['columns', 1]"  [override]
stubs/geopandas/geopandas/geoseries.pyi:152: note: This violates the Liskov substitution principle
stubs/geopandas/geopandas/geoseries.pyi:152: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#incompatible-overrides

I will try to fix it.

Metadata

Metadata

Assignees

Labels

project: infrastructuretypeshed build, test, documentation, or distribution related

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions