File tree 2 files changed +8
-5
lines changed
2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,6 @@ ignore_errors=True
8
8
[mypy-pandas.core.api]
9
9
ignore_errors =True
10
10
11
- [mypy-pandas.core.base]
12
- ignore_errors =True
13
-
14
11
[mypy-pandas.core.computation.expr]
15
12
ignore_errors =True
16
13
Original file line number Diff line number Diff line change @@ -837,7 +837,10 @@ def array(self) -> ExtensionArray:
837
837
[a, b, a]
838
838
Categories (2, object): [a, b]
839
839
"""
840
- result = self ._values
840
+ # As a mixin, we depend on the mixing class having _values.
841
+ # Special mixin syntax may be developed in the future:
842
+ # https://github.com/python/typing/issues/246
843
+ result = self ._values # type: ignore
841
844
842
845
if is_datetime64_ns_dtype (result .dtype ):
843
846
from pandas .arrays import DatetimeArray
@@ -960,7 +963,10 @@ def _ndarray_values(self) -> np.ndarray:
960
963
"""
961
964
if is_extension_array_dtype (self ):
962
965
return self .array ._ndarray_values
963
- return self .values
966
+ # As a mixin, we depend on the mixing class having values.
967
+ # Special mixin syntax may be developed in the future:
968
+ # https://github.com/python/typing/issues/246
969
+ return self .values # type: ignore
964
970
965
971
@property
966
972
def empty (self ):
You can’t perform that action at this time.
0 commit comments