diff --git a/my/core/__init__.py b/my/core/__init__.py index 0f09eef..d753760 100644 --- a/my/core/__init__.py +++ b/my/core/__init__.py @@ -42,7 +42,7 @@ __all__ = [ # you could put _init_hook.py next to your private my/config # that way you can configure logging/warnings/env variables on every HPI import try: - import my._init_hook # type: ignore[import] + import my._init_hook # type: ignore[import-not-found] except: pass ## diff --git a/my/core/common.py b/my/core/common.py index 8c670fa..738f6f1 100644 --- a/my/core/common.py +++ b/my/core/common.py @@ -86,7 +86,7 @@ def ensure_unique( for i in it: k = key(i) v = value(i) - pv = key2value.get(k, None) # type: ignore + pv = key2value.get(k, None) if pv is not None: raise RuntimeError(f"Duplicate key: {k}. Previous value: {pv}, new value: {v}") key2value[k] = v diff --git a/my/core/logging.py b/my/core/logging.py index 5580168..11567f1 100644 --- a/my/core/logging.py +++ b/my/core/logging.py @@ -230,7 +230,7 @@ def get_enlighten(): return Mock() try: - import enlighten # type: ignore[import] + import enlighten # type: ignore[import-untyped] except ModuleNotFoundError: warnings.warn("You might want to 'pip install enlighten' for a nice progress bar") diff --git a/my/runnerup.py b/my/runnerup.py index 1f20525..f12d9b3 100644 --- a/my/runnerup.py +++ b/my/runnerup.py @@ -13,7 +13,7 @@ from typing import Iterable from .core import Res, get_files from .core.common import isoparse, Json -import tcxparser # type: ignore[import] +import tcxparser # type: ignore[import-untyped] from my.config import runnerup as config