add typehints and type: ignores

This commit is contained in:
xmatthias
2018-05-31 22:00:46 +02:00
parent cf34b84cf1
commit 3fb1dd02f1
4 changed files with 9 additions and 9 deletions

View File

@@ -101,7 +101,7 @@ class StrategyResolver(object):
# Generate spec based on absolute path
spec = importlib.util.spec_from_file_location('user_data.strategies', module_path)
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)
spec.loader.exec_module(module) # type: ignore
valid_strategies_gen = (
obj for name, obj in inspect.getmembers(module, inspect.isclass)