mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-11-22 13:29:19 +08:00
refactor(transforms): drop the repeated-header check main already has
#4278 added the same check to parse_tabular after this branch did, so the merge left it twice. Keep main's copy. This branch's regression test stays: it also covers markdown and whitespace-normalized collisions, and fails if main's check is removed.
This commit is contained in:
@@ -150,10 +150,6 @@ def parse_tabular(
|
||||
|
||||
if not headers or not rows:
|
||||
return None
|
||||
# Records key every cell by its header, so a repeated header (after the
|
||||
# parsers strip whitespace) would keep only the last of its columns.
|
||||
if len(set(headers)) != len(headers):
|
||||
return None
|
||||
# Ragged tables (rows whose cell count differs from the header count)
|
||||
# can't be zipped into records without shifting values under the wrong
|
||||
# column — a compressed table must never state facts the original
|
||||
|
||||
Reference in New Issue
Block a user