Skip to content

Commit a6d10b7

Browse files
author
Maksym Lysak
committed
Small fixes
Signed-off-by: Maksym Lysak <[email protected]>
1 parent ba4d1ea commit a6d10b7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

docling_core/types/doc/regions.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
#
2-
# Copyright IBM Corp. 2025 - 2025
3-
# SPDX-License-Identifier: MIT
4-
#
5-
61
"""Utils to work with region-defined tables."""
72

83
from typing import List, Optional, Sequence, Set, Tuple
@@ -89,8 +84,6 @@ def _compute_cells(
8984
rows.sort(key=lambda r: (r.t + r.b) / 2.0)
9085
columns.sort(key=lambda c: (c.l + c.r) / 2.0)
9186

92-
# n_rows, n_cols = len(rows), len(columns)
93-
9487
def span_from_merge(
9588
m: BoundingBox, lines: List[BoundingBox], axis: str, frac_threshold: float
9689
) -> Optional[Tuple[int, int]]:
@@ -216,7 +209,7 @@ def regions_to_table(
216209
row_headers: List[BoundingBox] = [],
217210
col_headers: List[BoundingBox] = [],
218211
row_sections: List[BoundingBox] = [],
219-
) -> Optional[TableData]:
212+
) -> TableData:
220213
"""Converts regions: rows, columns, merged cells into table_data structure.
221214
222215
Adds semantics for regions of row_headers, col_headers, row_section

0 commit comments

Comments
 (0)