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
Is this intentional? Is the idea that isinstance(foo, Index) can be replaced by isinstance(foo, ABCIndexClass) and notisinstance(foo, ABCIndex)? Now that I look at it this seems obvious, but still unexpected.
Checking isinstance(by, ABCIndex) instead of isinstance(by, Index) caused a test failure in #17174.
Possibly related is a comment in pd.core.strings.StringAccessorMixin._make_str_accessor:
elif isinstance(self, Index):
# can't use ABCIndex to exclude non-str
I count 6 usages of ABCIndex across the package. Are we sure no one else has made the same mistake I did of using this where ABCIndexClass should have been used?
The text was updated successfully, but these errors were encountered:
Is this intentional? Is the idea that
isinstance(foo, Index)
can be replaced byisinstance(foo, ABCIndexClass)
and notisinstance(foo, ABCIndex)
? Now that I look at it this seems obvious, but still unexpected.Checking
isinstance(by, ABCIndex)
instead ofisinstance(by, Index)
caused a test failure in #17174.Possibly related is a comment in
pd.core.strings.StringAccessorMixin._make_str_accessor
:I count 6 usages of
ABCIndex
across the package. Are we sure no one else has made the same mistake I did of using this whereABCIndexClass
should have been used?The text was updated successfully, but these errors were encountered: