From c70ddfd5084ff4dfd7c7b1830ed7d75122b5fcf6 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sat, 3 Dec 2022 13:50:38 -0500 Subject: [PATCH] Add type-hints for `games.process` --- core/auto_process/games.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/core/auto_process/games.py b/core/auto_process/games.py index 7a91678f..8a614761 100644 --- a/core/auto_process/games.py +++ b/core/auto_process/games.py @@ -11,7 +11,14 @@ from core.utils import convert_to_ascii, server_responding 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])