From 9739304528ddc5bd2c9802d79de15170a64b5d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Steinbei=C3=9Fer?= Date: Mon, 6 Jan 2025 20:22:57 +0100 Subject: [PATCH] Make src/documents/classifier.py::load_classifier keyword only --- src/documents/classifier.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/classifier.py b/src/documents/classifier.py index 89d5c79ba..b46d0e138 100644 --- a/src/documents/classifier.py +++ b/src/documents/classifier.py @@ -37,7 +37,7 @@ class ClassifierModelCorruptError(Exception): pass -def load_classifier(raise_exception: bool = False) -> Optional["DocumentClassifier"]: +def load_classifier(*, raise_exception: bool = False) -> Optional["DocumentClassifier"]: if not settings.MODEL_FILE.is_file(): logger.debug( "Document classification model does not exist (yet), not "