From d1d1724537d6a1f37591cdea44052207caae2ee2 Mon Sep 17 00:00:00 2001 From: Michele Dolfi <97102151+dolfim-ibm@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:54:43 +0200 Subject: [PATCH] fix: missing type for default values (#12) Signed-off-by: Michele Dolfi --- docling/datamodel/document.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docling/datamodel/document.py b/docling/datamodel/document.py index cc12d7d8..91058110 100644 --- a/docling/datamodel/document.py +++ b/docling/datamodel/document.py @@ -117,9 +117,9 @@ class ConvertedDocument(BaseModel): errors: List[Dict] = [] # structure to keep errors pages: List[Page] = [] - assembled: AssembledUnit = None + assembled: Optional[AssembledUnit] = None - output: DsDocument = None + output: Optional[DsDocument] = None def to_ds_document(self) -> DsDocument: title = ""