Skip to content

Commit d1a8190

Browse files
committed
static check correction
1 parent c23f65b commit d1a8190

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pandas/_libs/lib.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def map_infer(
7676
ignore_na: bool = ...,
7777
mask: npt.NDArray[np.bool_] | None = ...,
7878
na_value: Any = ...,
79-
convert_to_nullable_dtype: Literal[False] = ...,
79+
convert_to_nullable_dtype: bool = ...,
8080
storage: str | None = ...,
8181
) -> np.ndarray: ...
8282
@overload
@@ -88,7 +88,7 @@ def map_infer(
8888
ignore_na: bool = ...,
8989
mask: npt.NDArray[np.bool_] | None = ...,
9090
na_value: Any = ...,
91-
convert_to_nullable_dtype: Literal[False] = ...,
91+
convert_to_nullable_dtype: bool = ...,
9292
storage: str | None = ...,
9393
) -> ArrayLike: ...
9494
@overload

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def _from_sequence_of_strings(
343343
if isinstance(strings, ExtensionArray) and isinstance(
344344
strings.dtype, ArrowDtype
345345
):
346+
strings = cast("ArrowExtensionArray", strings)
346347
scalars = to_datetime(strings._pa_array, errors="raise").date
347348
else:
348349
scalars = to_datetime(strings, errors="raise").date

0 commit comments

Comments
 (0)