added type annotation. passed mypy
This commit is contained in:
parent
7eb2ab7fe3
commit
ea99231f03
@ -101,8 +101,8 @@ def renewRecords(api: dict[str, dict[str, list[str]]], current_ip: str, log: Cal
|
|||||||
|
|
||||||
|
|
||||||
def parseArgv(argv: list[str]) -> dict[str, list[str]]:
|
def parseArgv(argv: list[str]) -> dict[str, list[str]]:
|
||||||
cli_options = {}
|
cli_options: dict = {}
|
||||||
buffer = None
|
buffer: str = ''
|
||||||
|
|
||||||
for arg in argv:
|
for arg in argv:
|
||||||
if arg.startswith('--'):
|
if arg.startswith('--'):
|
||||||
|
Loading…
Reference in New Issue
Block a user