mirror of
https://github.com/lilydjwg/nvchecker.git
synced 2025-03-10 06:14:02 +00:00
[mypy] remove some unusted type: ignore
This commit is contained in:
parent
5e60a1dc86
commit
83286263d2
1 changed files with 3 additions and 3 deletions
|
@ -238,7 +238,7 @@ class Dispatcher:
|
||||||
mods[source] = mod, tasks
|
mods[source] = mod, tasks
|
||||||
config = source_configs.get(source)
|
config = source_configs.get(source)
|
||||||
if config and getattr(mod, 'configure'):
|
if config and getattr(mod, 'configure'):
|
||||||
mod.configure(config) # type: ignore
|
mod.configure(config)
|
||||||
else:
|
else:
|
||||||
tasks = mods[source][1]
|
tasks = mods[source][1]
|
||||||
tasks.append((name, entry))
|
tasks.append((name, entry))
|
||||||
|
@ -246,7 +246,7 @@ class Dispatcher:
|
||||||
ret = []
|
ret = []
|
||||||
for mod, tasks in mods.values():
|
for mod, tasks in mods.values():
|
||||||
if hasattr(mod, 'Worker'):
|
if hasattr(mod, 'Worker'):
|
||||||
worker_cls = mod.Worker # type: ignore
|
worker_cls = mod.Worker
|
||||||
else:
|
else:
|
||||||
worker_cls = FunctionWorker
|
worker_cls = FunctionWorker
|
||||||
|
|
||||||
|
@ -256,7 +256,7 @@ class Dispatcher:
|
||||||
task_sem, result_q, tasks, keymanager,
|
task_sem, result_q, tasks, keymanager,
|
||||||
)
|
)
|
||||||
if worker_cls is FunctionWorker:
|
if worker_cls is FunctionWorker:
|
||||||
func = mod.get_version # type: ignore
|
func = mod.get_version
|
||||||
ctx.run(worker.initialize, func)
|
ctx.run(worker.initialize, func)
|
||||||
|
|
||||||
ret.append(ctx.run(worker.run))
|
ret.append(ctx.run(worker.run))
|
||||||
|
|
Loading…
Add table
Reference in a new issue