Skip to content

Commit 1de77e5

Browse files
committed
ignore mypy assignment type check in str.get_dummies
1 parent 21f2e70 commit 1de77e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/strings/accessor.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,14 +2536,14 @@ def get_dummies(
25362536
if isinstance(input_dtype, ArrowDtype):
25372537
import pyarrow as pa
25382538

2539-
dtype = ArrowDtype(pa.bool_())
2539+
dtype = ArrowDtype(pa.bool_()) # type: ignore[assignment]
25402540
elif (
25412541
isinstance(input_dtype, StringDtype)
25422542
and input_dtype.na_value is not np.nan
25432543
):
25442544
from pandas.core.dtypes.common import pandas_dtype
25452545

2546-
dtype = pandas_dtype("boolean")
2546+
dtype = pandas_dtype("boolean") # type: ignore[assignment]
25472547
else:
25482548
dtype = np.bool_
25492549

0 commit comments

Comments
 (0)