Skip to content

Commit 922e3f6

Browse files
Merge pull request #260 from neutrinoceros/sty/tch
MNT: enable ruff's TCH ruleset
2 parents 0f2bec6 + 9d5322e commit 922e3f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ select = [
8181
"D", # pydocstyle
8282
"C4", # flake8-comprehensions
8383
"B", # flake8-bugbear
84+
"TCH", # flake8-type-checking
8485
"YTT", # flake8-2020
8586
"I", # isort
8687
"UP", # pyupgrade

src/gpgi/types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@
3131
_deposit_tsc_3D,
3232
_index_particles,
3333
)
34-
from ._typing import FieldMap, Name
3534

3635
if sys.version_info >= (3, 13):
3736
LockType = Lock
3837
else:
3938
from _thread import LockType
4039

4140
if TYPE_CHECKING:
42-
from ._typing import HCIArray, RealArray
41+
from ._typing import FieldMap, HCIArray, Name, RealArray
4342

4443
BoundarySpec = tuple[tuple[str, str, str], ...]
4544

0 commit comments

Comments
 (0)