From 558ea957a8e89d6a97e4ec56725037c6599b1613 Mon Sep 17 00:00:00 2001 From: Christoph Auer Date: Sat, 19 Jul 2025 17:17:01 +0200 Subject: [PATCH] Fix: python3.9 compat Signed-off-by: Christoph Auer --- docling/pipeline/threaded_standard_pdf_pipeline.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docling/pipeline/threaded_standard_pdf_pipeline.py b/docling/pipeline/threaded_standard_pdf_pipeline.py index 5c6c0752..1f7e9a1e 100644 --- a/docling/pipeline/threaded_standard_pdf_pipeline.py +++ b/docling/pipeline/threaded_standard_pdf_pipeline.py @@ -61,7 +61,7 @@ _log = logging.getLogger(__name__) # ────────────────────────────────────────────────────────────────────────────── -@dataclass(slots=True) +@dataclass class ThreadedItem: """Envelope that travels between pipeline stages.""" @@ -73,7 +73,7 @@ class ThreadedItem: is_failed: bool = False -@dataclass(slots=True) +@dataclass class ProcessingResult: """Aggregated outcome of a pipeline run.""" @@ -284,7 +284,7 @@ class ThreadedPipelineStage: _log.error("Output queue closed while emitting from %s", self.name) -@dataclass(slots=True) +@dataclass class RunContext: """Wiring for a single *execute* call."""