24
24
from pandas .util ._decorators import doc
25
25
from pandas .util ._validators import validate_fillna_kwargs
26
26
27
- from pandas .core .dtypes .base import ExtensionDtype
28
27
from pandas .core .dtypes .common import (
29
28
is_array_like ,
30
29
is_bool_dtype ,
42
41
from pandas .core .arrays .base import ExtensionArray
43
42
from pandas .core .arrays .boolean import BooleanDtype
44
43
from pandas .core .arrays .integer import Int64Dtype
44
+ from pandas .core .arrays .string_ import StringDtype
45
45
from pandas .core .indexers import (
46
46
check_array_indexer ,
47
47
validate_indices ,
74
74
75
75
76
76
@register_extension_dtype
77
- class ArrowStringDtype (ExtensionDtype ):
77
+ class ArrowStringDtype (StringDtype ):
78
78
"""
79
79
Extension dtype for string data in a ``pyarrow.ChunkedArray``.
80
80
@@ -110,7 +110,7 @@ def type(self) -> type[str]:
110
110
return str
111
111
112
112
@classmethod
113
- def construct_array_type (cls ) -> type_t [ArrowStringArray ]:
113
+ def construct_array_type (cls ) -> type_t [ArrowStringArray ]: # type: ignore[override]
114
114
"""
115
115
Return the array type associated with this dtype.
116
116
@@ -126,7 +126,9 @@ def __hash__(self) -> int:
126
126
def __repr__ (self ) -> str :
127
127
return "ArrowStringDtype"
128
128
129
- def __from_arrow__ (self , array : pa .Array | pa .ChunkedArray ) -> ArrowStringArray :
129
+ def __from_arrow__ ( # type: ignore[override]
130
+ self , array : pa .Array | pa .ChunkedArray
131
+ ) -> ArrowStringArray :
130
132
"""
131
133
Construct StringArray from pyarrow Array/ChunkedArray.
132
134
"""
0 commit comments