mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 22:03:13 -07:00
Add type-hints
This commit is contained in:
parent
0ab920675c
commit
a2e85a7002
6 changed files with 48 additions and 48 deletions
|
@ -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])
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue