Skip to content

Commit b22ca47

Browse files
committed
BUG: Update return type for _expand_colspan_rowspan
1 parent 36e09fe commit b22ca47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pandas/io/html.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def _expand_colspan_rowspan(
473473
section: Literal["header", "footer", "body"],
474474
remainder: list[tuple[int, str | tuple, int]] | None = None,
475475
overflow: bool = True,
476-
) -> list[list]:
476+
) -> tuple[list[list], list[tuple[int, str | tuple, int]]]:
477477
"""
478478
Given a list of <tr>s, return a list of text rows.
479479
@@ -493,6 +493,9 @@ def _expand_colspan_rowspan(
493493
list of list
494494
Each returned row is a list of str text, or tuple (text, link)
495495
if extract_links is not None.
496+
remainder
497+
Remaining partial rows if any. If overflow is False, an empty list
498+
is returned.
496499
497500
Notes
498501
-----

0 commit comments

Comments
 (0)