From 15946b196d095f02fc426f622ef9b78d4ae13d47 Mon Sep 17 00:00:00 2001 From: phact Date: Mon, 29 Sep 2025 15:18:40 -0400 Subject: [PATCH] rm annotation --- src/models/processors.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/models/processors.py b/src/models/processors.py index c3f006a9..ecec9c49 100644 --- a/src/models/processors.py +++ b/src/models/processors.py @@ -140,19 +140,25 @@ class TaskProcessor: raise return {"status": "indexed", "id": file_hash} - @abstractmethod async def process_item( self, upload_task: UploadTask, item: Any, file_task: FileTask ) -> None: """ Process a single item in the task. + This is a base implementation that should be overridden by subclasses. + When TaskProcessor is used directly (not via subclass), this method + is not called - only the utility methods like process_document_standard + are used. + Args: upload_task: The overall upload task item: The item to process (could be file path, file info, etc.) file_task: The specific file task to update """ - pass + raise NotImplementedError( + "process_item should be overridden by subclasses when used in task processing" + ) class DocumentFileProcessor(TaskProcessor):