From f50ef243144cd202a5ba9c1ec2efc1695650c447 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sat, 3 Dec 2022 13:48:14 -0500 Subject: [PATCH] Add type-hints for `books.process` --- core/auto_process/books.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/auto_process/books.py b/core/auto_process/books.py index 510e7c33..6b3ff8b8 100644 --- a/core/auto_process/books.py +++ b/core/auto_process/books.py @@ -13,7 +13,14 @@ from core.utils import ( requests.packages.urllib3.disable_warnings() -def process(section, dir_name, input_name=None, status=0, client_agent='manual', input_category=None): +def process( + section, + dir_name, + input_name=None, + status=0, + client_agent='manual', + input_category=None, +) -> ProcessResult: status = int(status) cfg = dict(core.CFG[section][input_category])