Skip to content

Commit 4a9bcb6

Browse files
committed
TYP: remove ignore from array_manager.py
1 parent b63d35d commit 4a9bcb6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/internals/array_manager.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -842,9 +842,7 @@ def iset(
842842
else:
843843
assert isinstance(loc, np.ndarray)
844844
assert loc.dtype == "bool"
845-
# error: Incompatible types in assignment (expression has type "ndarray",
846-
# variable has type "range")
847-
indices = np.nonzero(loc)[0] # type: ignore[assignment]
845+
indices = np.array([index for index in loc[1:]])
848846

849847
assert value.ndim == 2
850848
assert value.shape[0] == len(self._axes[0])

0 commit comments

Comments
 (0)