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( def process(
section, section: core.configuration.Section,
dir_name, dir_name: str,
input_name=None, input_name: str = '',
status: int = 0, status: int = 0,
failed=False, failed: bool = False,
client_agent='manual', client_agent: str = 'manual',
download_id='', download_id: str = '',
input_category=None, input_category: str = '',
failure_link=None, failure_link: str = '',
) -> ProcessResult: ) -> ProcessResult:
cfg = dict(core.CFG[section][input_category]) cfg = dict(core.CFG[section][input_category])

View file

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

View file

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

View file

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

View file

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

View file

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