Skip to content

Commit 96e5d3f

Browse files
committed
Add back type ignore
1 parent beb6649 commit 96e5d3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas/core/internals/managers.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2452,7 +2452,11 @@ def _merge_blocks(blocks: tuple[Block, ...], can_consolidate: bool) -> Generator
24522452
new_values: ArrayLike
24532453

24542454
if isinstance(blocks[0].dtype, np.dtype):
2455-
new_values = np.vstack([b.values for b in blocks])
2455+
# error: List comprehension has incompatible type List[Union[ndarray,
2456+
# ExtensionArray]]; expected List[Union[complex, generic,
2457+
# Sequence[Union[int, float, complex, str, bytes, generic]],
2458+
# Sequence[Sequence[Any]], SupportsArray]]
2459+
new_values = np.vstack([b.values for b in blocks]) # type: ignore[misc]
24562460
else:
24572461
bvals = [blk.values for blk in blocks]
24582462
bvals2 = cast(Sequence[NDArrayBackedExtensionArray], bvals)

0 commit comments

Comments
 (0)