Skip to content

Commit bd91bb0

Browse files
committed
mypy fixup
1 parent 85abecf commit bd91bb0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/core/arrays/string_.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,8 @@ class BaseStringArray(ExtensionArray):
319319
Mixin class for StringArray, ArrowStringArray.
320320
"""
321321

322+
dtype: StringDtype
323+
322324
@doc(ExtensionArray.tolist)
323325
def tolist(self) -> list:
324326
if self.ndim > 1:
@@ -353,7 +355,8 @@ def _str_map_str_or_object(
353355
result = pa.array(
354356
result, mask=mask, type=pa.large_string(), from_pandas=True
355357
)
356-
return type(self)(result)
358+
# error: Too many arguments for "BaseStringArray"
359+
return type(self)(result) # type: ignore[call-arg]
357360

358361
else:
359362
# This is when the result type is object. We reach this when

0 commit comments

Comments
 (0)