Skip to content

Commit 1dc8650

Browse files
committed
Remove unused INDEX
1 parent 9031209 commit 1dc8650

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/phyjax2d/impl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def __truediv__(self, o: float | jax.Array) -> Self:
7777
return jax.tree_util.tree_map(lambda x: x / o, self)
7878

7979
@jax.jit
80-
def get_slice(self, index: INDEX) -> Self:
80+
def get_slice(self, index: Sequence[int] | int | None) -> Self:
8181
return jax.tree_util.tree_map(lambda x: x[index], self)
8282

8383
def split(self, split_index: int) -> tuple[Self, Self]:
@@ -900,8 +900,8 @@ def set_ignore_flags_by_indices(
900900
self,
901901
target_n1: str,
902902
target_n2: str,
903-
n1_idx: INDEX,
904-
n2_idx: INDEX,
903+
n1_idx: Sequence[int] | int | None,
904+
n2_idx: Sequence[int] | int | None,
905905
) -> None:
906906
start = 0
907907
for n1, n2 in _CONTACT_FUNCTIONS.keys():

0 commit comments

Comments
 (0)