diff --git a/pyproject.toml b/pyproject.toml index a35c4dd..80009b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -81,6 +81,7 @@ select = [ "D", # pydocstyle "C4", # flake8-comprehensions "B", # flake8-bugbear + "TCH", # flake8-type-checking "YTT", # flake8-2020 "I", # isort "UP", # pyupgrade diff --git a/src/gpgi/types.py b/src/gpgi/types.py index 9ee6f09..5481dfd 100644 --- a/src/gpgi/types.py +++ b/src/gpgi/types.py @@ -31,7 +31,6 @@ _deposit_tsc_3D, _index_particles, ) -from ._typing import FieldMap, Name if sys.version_info >= (3, 13): LockType = Lock @@ -39,7 +38,7 @@ from _thread import LockType if TYPE_CHECKING: - from ._typing import HCIArray, RealArray + from ._typing import FieldMap, HCIArray, Name, RealArray BoundarySpec = tuple[tuple[str, str, str], ...]