Skip to content

Commit c4b3ae3

Browse files
committed
revert adding FormItem for now
Signed-off-by: Panos Vagenas <[email protected]>
1 parent 948a1c5 commit c4b3ae3

File tree

3 files changed

+0
-20
lines changed

3 files changed

+0
-20
lines changed

docling_core/types/doc/document.py

-7
Original file line numberDiff line numberDiff line change
@@ -1297,12 +1297,6 @@ class KeyValueItem(DocItem):
12971297
label: typing.Literal[DocItemLabel.KEY_VALUE_REGION] = DocItemLabel.KEY_VALUE_REGION
12981298

12991299

1300-
class FormItem(DocItem):
1301-
"""FormItem."""
1302-
1303-
label: typing.Literal[DocItemLabel.FORM] = DocItemLabel.FORM
1304-
1305-
13061300
ContentItem = Annotated[
13071301
Union[
13081302
TextItem,
@@ -1311,7 +1305,6 @@ class FormItem(DocItem):
13111305
PictureItem,
13121306
TableItem,
13131307
KeyValueItem,
1314-
FormItem,
13151308
],
13161309
Field(discriminator="label"),
13171310
]

test/data/docling_document/unit/FormItem.yaml

-5
This file was deleted.

test/test_docling_doc.py

-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
DoclingDocument,
1919
DocumentOrigin,
2020
FloatingItem,
21-
FormItem,
2221
ImageRef,
2322
KeyValueItem,
2423
ListItem,
@@ -138,13 +137,6 @@ def verify(dc, obj):
138137
)
139138
verify(dc, obj)
140139

141-
elif dc is FormItem:
142-
obj = dc(
143-
label=DocItemLabel.FORM,
144-
self_ref="#",
145-
)
146-
verify(dc, obj)
147-
148140
else:
149141
raise RuntimeError(f"New derived class detected {dc.__name__}")
150142

0 commit comments

Comments
 (0)