Chore(mypy): Annotate None returns for typing improvements (#11213)

This commit is contained in:
Sebastian Steinbeißer
2026-02-02 17:44:12 +01:00
committed by GitHub
parent a9c0b06e28
commit 3b5ffbf9fa
113 changed files with 1598 additions and 1510 deletions

View File

@@ -12,7 +12,7 @@ from documents.models import Document
from documents.parsers import get_parser_class_for_mime_type
def _process_document(doc_id):
def _process_document(doc_id) -> None:
document: Document = Document.objects.get(id=doc_id)
parser_class = get_parser_class_for_mime_type(document.mime_type)
@@ -37,7 +37,7 @@ def _process_document(doc_id):
class Command(MultiProcessMixin, ProgressBarMixin, BaseCommand):
help = "This will regenerate the thumbnails for all documents."
def add_arguments(self, parser):
def add_arguments(self, parser) -> None:
parser.add_argument(
"-d",
"--document",