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:
Ayushraj06-bit
2026-10-26 02:27:01 +05:30
parent b84cc7757e
commit ed0f453171
-4
View File
@@ -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