Skip to content

Commit 73c7de9

Browse files
ignore new mypy error
1 parent 6e3aac8 commit 73c7de9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/arrays/string_arrow.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,11 @@ def factorize(self, na_sentinel: int = -1) -> Tuple[np.ndarray, ExtensionArray]:
273273
return indices.values, type(self)(encoded.dictionary)
274274
else:
275275
np_array = self._data.to_pandas().values
276-
return factorize(np_array, na_sentinel=na_sentinel)
276+
# error: Incompatible return value type (got "Tuple[Any, Union[Any,
277+
# Index]]", expected "Tuple[Any, ExtensionArray]")
278+
return factorize( # type: ignore[return-value]
279+
np_array, na_sentinel=na_sentinel
280+
)
277281

278282
@classmethod
279283
def _concat_same_type(cls, to_concat) -> ArrowStringArray:

0 commit comments

Comments
 (0)