Chore: Drop Python 3.9 support (#7774)

This commit is contained in:
Trenton H
2024-09-26 12:22:24 -07:00
committed by GitHub
parent 5e687d9a93
commit e6f59472e4
44 changed files with 970 additions and 1066 deletions

View File

@@ -1,7 +1,6 @@
import logging
import re
from fnmatch import fnmatch
from typing import Union
from documents.classifier import DocumentClassifier
from documents.data_models import ConsumableDocument
@@ -20,7 +19,7 @@ logger = logging.getLogger("paperless.matching")
def log_reason(
matching_model: Union[MatchingModel, WorkflowTrigger],
matching_model: MatchingModel | WorkflowTrigger,
document: Document,
reason: str,
):
@@ -386,7 +385,7 @@ def existing_document_matches_workflow(
def document_matches_workflow(
document: Union[ConsumableDocument, Document],
document: ConsumableDocument | Document,
workflow: Workflow,
trigger_type: WorkflowTrigger.WorkflowTriggerType,
) -> bool: