Skip to content

Commit

Permalink
Merge pull request #260 from neutrinoceros/sty/tch
Browse files Browse the repository at this point in the history
MNT: enable ruff's TCH ruleset
  • Loading branch information
neutrinoceros authored Sep 2, 2024
2 parents 0f2bec6 + 9d5322e commit 922e3f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ select = [
"D", # pydocstyle
"C4", # flake8-comprehensions
"B", # flake8-bugbear
"TCH", # flake8-type-checking
"YTT", # flake8-2020
"I", # isort
"UP", # pyupgrade
Expand Down
3 changes: 1 addition & 2 deletions src/gpgi/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,14 @@
_deposit_tsc_3D,
_index_particles,
)
from ._typing import FieldMap, Name

if sys.version_info >= (3, 13):
LockType = Lock
else:
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], ...]

Expand Down

0 comments on commit 922e3f6

Please sign in to comment.