Add type-hints

This commit is contained in:
Labrys of Knossos 2022-12-04 11:20:44 -05:00
commit a2e85a7002
6 changed files with 48 additions and 48 deletions

View file

@ -36,15 +36,15 @@ requests.packages.urllib3.disable_warnings()
def process(
section,
dir_name,
input_name=None,
section: core.configuration.Section,
dir_name: str,
input_name: str = '',
status: int = 0,
failed=False,
client_agent='manual',
download_id='',
input_category=None,
failure_link=None,
failed: bool = False,
client_agent: str = 'manual',
download_id: str = '',
input_category: str = '',
failure_link: str = '',
) -> ProcessResult:
cfg = dict(core.CFG[section][input_category])

View file

@ -36,15 +36,15 @@ requests.packages.urllib3.disable_warnings()
def process(
section,
dir_name,
input_name=None,
section: core.configuration.Section,
dir_name: str,
input_name: str = '',
status: int = 0,
failed=False,
client_agent='manual',
download_id='',
input_category=None,
failure_link=None,
failed: bool = False,
client_agent: str = 'manual',
download_id: str = '',
input_category: str = '',
failure_link: str = '',
) -> ProcessResult:
apc_version = '2.04'
comicrn_version = '1.01'

View file

@ -36,15 +36,15 @@ requests.packages.urllib3.disable_warnings()
def process(
section,
dir_name,
input_name=None,
section: core.configuration.Section,
dir_name: str,
input_name: str = '',
status: int = 0,
failed=False,
client_agent='manual',
download_id='',
input_category=None,
failure_link=None,
failed: bool = False,
client_agent: str = 'manual',
download_id: str = '',
input_category: str = '',
failure_link: str = '',
) -> ProcessResult:
cfg = dict(core.CFG[section][input_category])

View file

@ -36,15 +36,15 @@ requests.packages.urllib3.disable_warnings()
def process(
section,
dir_name,
input_name=None,
section: core.configuration.Section,
dir_name: str,
input_name: str = '',
status: int = 0,
failed=False,
client_agent='manual',
download_id='',
input_category=None,
failure_link=None,
failed: bool = False,
client_agent: str = 'manual',
download_id: str = '',
input_category: str = '',
failure_link: str = '',
) -> ProcessResult:
cfg = dict(core.CFG[section][input_category])

View file

@ -36,15 +36,15 @@ requests.packages.urllib3.disable_warnings()
def process(
section,
dir_name,
input_name=None,
section: core.configuration.Section,
dir_name: str,
input_name: str = '',
status: int = 0,
failed=False,
client_agent='manual',
download_id='',
input_category=None,
failure_link=None,
failed: bool = False,
client_agent: str = 'manual',
download_id: str = '',
input_category: str = '',
failure_link: str = '',
) -> ProcessResult:
cfg = dict(core.CFG[section][input_category])

View file

@ -36,15 +36,15 @@ requests.packages.urllib3.disable_warnings()
def process(
section,
dir_name,
input_name=None,
section: core.configuration.Section,
dir_name: str,
input_name: str = '',
status: int = 0,
failed=False,
client_agent='manual',
download_id='',
input_category=None,
failure_link=None,
failed: bool = False,
client_agent: str = 'manual',
download_id: str = '',
input_category: str = '',
failure_link: str = '',
) -> ProcessResult:
cfg = dict(core.CFG[section][input_category])