-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Description
My repo currently satisfies pandas-stubs type hints. However, when I add types-geopandas, I see hundreds of new issues:
error: "Index[Any]" has no attribute "overlaps" [attr-defined]
error: "Index[Any]" has no attribute "left" [attr-defined]
error: "Index[Any]" has no attribute "right" [attr-defined]
I'm using pd.IntervalIndex, which has these attributes. However, pandas currently has no way of typing DataFrame indices (pandas-dev/pandas#36708), so there is no way of knowing which kind of index is returned.
I think it would be more correct to use typing.Any here since it is unknown and dynamic.
Metadata
Metadata
Assignees
Labels
No labels