Skip to content

Commit d0f6673

Browse files
committed
Use quotes for cast
1 parent 0629fcf commit d0f6673

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/arrays/string_.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
)
2424
from pandas._libs.arrays import NDArrayBacked
2525
from pandas._libs.lib import ensure_string_array
26-
from pandas._typing import npt
2726
from pandas.compat import (
2827
HAS_PYARROW,
2928
pa_version_under10p1,
@@ -84,6 +83,7 @@
8483
NumpyValueArrayLike,
8584
Scalar,
8685
Self,
86+
npt,
8787
type_t,
8888
)
8989

@@ -914,7 +914,7 @@ def _accumulate(self, name: str, *, skipna: bool = True, **kwargs) -> StringArra
914914
}[name]
915915

916916
if self._hasna:
917-
na_mask = cast(npt.NDArray[np.bool_], isna(ndarray))
917+
na_mask = cast("npt.NDArray[np.bool_]", isna(ndarray))
918918
if np.all(na_mask):
919919
return type(self)(ndarray)
920920
if skipna:

0 commit comments

Comments
 (0)