Skip to content

Commit 70182dc

Browse files
committed
fix(extract-core): remove useless pop of ocr kind
1 parent b52db6a commit 70182dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎extract-core/extract_core/docling_.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def _picture_descr_opts_type_adapter() -> TypeAdapter:
135135
def _ocr_opts_type_adapter() -> TypeAdapter:
136136
_OcrOptions = Annotated[ # noqa: N806
137137
tagged_union(OcrOptions.__subclasses__(), tag_getter=lambda x: x.kind),
138-
Discriminator(lambda x: x.pop("kind")),
138+
Discriminator(lambda x: x["kind"]),
139139
]
140140
return TypeAdapter(_OcrOptions)
141141

0 commit comments

Comments
 (0)