mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-24 06:55:21 -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(
|
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])
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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])
|
||||||
|
|
|
@ -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])
|
||||||
|
|
|
@ -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])
|
||||||
|
|
|
@ -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])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue