Skip to content

Commit 6ca4430

Browse files
committed
mypy fixup
1 parent 02dd36a commit 6ca4430

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/core/internals/construction.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,12 @@ def ndarray_to_mgr(
297297
if isinstance(values, (np.ndarray, ExtensionArray)) and values.ndim > 1:
298298
# GH#12513 a EA dtype passed with a 2D array, split into
299299
# multiple EAs that view the values
300-
values = [values[:, n] for n in range(values.shape[1])]
300+
# error: No overload variant of "__getitem__" of "ExtensionArray"
301+
# matches argument type "Tuple[slice, int]"
302+
values = [
303+
values[:, n] # type: ignore[call-overload]
304+
for n in range(values.shape[1])
305+
]
301306
else:
302307
values = [values]
303308

0 commit comments

Comments
 (0)