fixed the mypy

Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
Peter Staar 2024-11-19 05:59:07 +01:00
parent b312657f6b
commit 70abf9d080

View File

@ -1,7 +1,7 @@
import logging import logging
from io import BytesIO from io import BytesIO
from pathlib import Path from pathlib import Path
from typing import Set, Tuple, Union from typing import Dict, Set, Tuple, Union
from docling_core.types.doc import ( from docling_core.types.doc import (
DoclingDocument, DoclingDocument,
@ -51,7 +51,7 @@ class MsExcelDocumentBackend(DeclarativeDocumentBackend):
# Initialise the parents for the hierarchy # Initialise the parents for the hierarchy
self.max_levels = 10 self.max_levels = 10
self.parents = {} self.parents: Dict[int, Any] = {}
for i in range(-1, self.max_levels): for i in range(-1, self.max_levels):
self.parents[i] = None self.parents[i] = None