From 83286263d265835feb2fe4833e1d801c50ba7f6c Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Wed, 29 Dec 2021 17:15:29 +0800 Subject: [PATCH] [mypy] remove some unusted `type: ignore` --- nvchecker/core.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nvchecker/core.py b/nvchecker/core.py index 7ccd8fa..b6e866f 100644 --- a/nvchecker/core.py +++ b/nvchecker/core.py @@ -238,7 +238,7 @@ class Dispatcher: mods[source] = mod, tasks config = source_configs.get(source) if config and getattr(mod, 'configure'): - mod.configure(config) # type: ignore + mod.configure(config) else: tasks = mods[source][1] tasks.append((name, entry)) @@ -246,7 +246,7 @@ class Dispatcher: ret = [] for mod, tasks in mods.values(): if hasattr(mod, 'Worker'): - worker_cls = mod.Worker # type: ignore + worker_cls = mod.Worker else: worker_cls = FunctionWorker @@ -256,7 +256,7 @@ class Dispatcher: task_sem, result_q, tasks, keymanager, ) if worker_cls is FunctionWorker: - func = mod.get_version # type: ignore + func = mod.get_version ctx.run(worker.initialize, func) ret.append(ctx.run(worker.run))