Add type-hints for tv.process

This commit is contained in:
Labrys of Knossos 2022-12-03 13:43:30 -05:00
commit 09306727d6

View file

@ -32,7 +32,16 @@ from core.utils import (
requests.packages.urllib3.disable_warnings()
def process(section, dir_name, input_name=None, failed=False, client_agent='manual', download_id=None, input_category=None, failure_link=None):
def process(
section,
dir_name,
input_name=None,
failed=False,
client_agent='manual',
download_id=None,
input_category=None,
failure_link=None,
) -> ProcessResult:
cfg = dict(core.CFG[section][input_category])
host = cfg['host']