Skip to content

Commit 4e957f6

Browse files
committed
mypy fixup
1 parent 6d5f0ac commit 4e957f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/arrays/_mixins.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ def _quantile(
503503
# has floating dtype
504504
# TODO: technically __init__ isn't defined here.
505505
# Should we raise NotImplementedError and handle this on NumpyEA?
506-
return type(self)(res_values)
506+
return type(self)(res_values) # type: ignore[call-arg]
507507

508508
# ------------------------------------------------------------------------
509509
# numpy-like methods

pandas/core/arrays/string_.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ def __arrow_array__(self, type=None):
659659
values[self.isna()] = None
660660
return pa.array(values, type=type, from_pandas=True)
661661

662-
def _values_for_factorize(self) -> tuple[np.ndarray, libmissing.NAType | float]:
662+
def _values_for_factorize(self) -> tuple[np.ndarray, libmissing.NAType | float]: # type: ignore[override]
663663
arr = self._ndarray.copy()
664664

665665
return arr, self.dtype.na_value

0 commit comments

Comments
 (0)