You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RangeIndex._constructor returns Type[Int64Index] but it is supposed to return the current type of the class itself (Type[RangeIndex]) .
pandas/core/indexes/range.py:179: error: Return type "Type[Int64Index]" of "_constructor" incompatible with return type "Type[RangeIndex]" in supertype "Index" [override]
Found by declaring cache_readonly = property.
The text was updated successfully, but these errors were encountered:
Very similar issue here again:
pandas/core/indexes/multi.py:1098: error: Return type "Callable[..., MultiIndex]" of "_constructor" incompatible with return type "Type[MultiIndex]" in supertype "Index" [override]
Probably need to change Index._constructor or ignore these two cases.
RangeIndex._constructor
returnsType[Int64Index]
but it is supposed to return the current type of the class itself (Type[RangeIndex]
) .pandas/core/indexes/range.py:179: error: Return type "Type[Int64Index]" of "_constructor" incompatible with return type "Type[RangeIndex]" in supertype "Index" [override]
Found by declaring
cache_readonly = property
.The text was updated successfully, but these errors were encountered: