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
Cannot access member "contains" for type "ExtensionArray"
Member "contains" is unknownPylance[reportGeneralTypeIssues](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportGeneralTypeIssues)
(function) contains: Unknown
We are not recognizing that pd.Series(pd.Interval(1,4)) produces pd.Series[Interval[int]]
If we have a Series[Interval[int]] or Series[Interval[float]], then Series.array should return IntervalArray rather than ExtensionArray
To solve the latter, need to create an overload for Series.array(), but I'm not sure that will work with mypy, so may need to have a type called IntervalSeries that takes care of that.
Describe the bug
To Reproduce
from pandas-dev/pandas#52616 (comment):
Please complete the following information:
pandas-stubs
2.0.0.230412-py3-none-anyThe text was updated successfully, but these errors were encountered: