Skip to content

Commit 50ed90c

Browse files
Fix dtype type hints
1 parent 09b2fad commit 50ed90c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2534,7 +2534,7 @@ def _str_findall(self, pat: str, flags: int = 0) -> Self:
25342534
return type(self)(pa.chunked_array(result))
25352535

25362536
def _str_get_dummies(
2537-
self, sep: str = "|", dummy_na: bool = False, dtype: NpDtype = None
2537+
self, sep: str = "|", dummy_na: bool = False, dtype: NpDtype | None = None
25382538
):
25392539
if dtype is None:
25402540
dtype = np.bool_

pandas/core/arrays/categorical.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2745,7 +2745,7 @@ def _str_map(
27452745
return take_nd(result, codes, fill_value=na_value)
27462746

27472747
def _str_get_dummies(
2748-
self, sep: str = "|", dummy_na: bool = False, dtype: NpDtype = None
2748+
self, sep: str = "|", dummy_na: bool = False, dtype: NpDtype | None = None
27492749
):
27502750
# sep may not be in categories. Just bail on this.
27512751
from pandas.core.arrays import NumpyExtensionArray

pandas/core/arrays/string_arrow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ def _str_find(self, sub: str, start: int = 0, end: int | None = None):
552552
return self._convert_int_dtype(result)
553553

554554
def _str_get_dummies(
555-
self, sep: str = "|", dummy_na: bool = False, dtype: NpDtype = None
555+
self, sep: str = "|", dummy_na: bool = False, dtype: NpDtype | None = None
556556
):
557557
if dtype is None:
558558
dtype = np.int64

0 commit comments

Comments
 (0)