Skip to content

Commit af6d150

Browse files
committed
Remove lru_cache use in sh.fmt_idx()
Slices are not hashable!
1 parent b6d05da commit af6d150

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

array_api_tests/shape_helpers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import math
2-
from functools import lru_cache
32
from itertools import product
43
from typing import Iterator, List, Optional, Tuple, Union
54

@@ -161,7 +160,6 @@ def fmt_i(i: AtomicIndex) -> str:
161160
return "..."
162161

163162

164-
@lru_cache
165163
def fmt_idx(sym: str, idx: Index) -> str:
166164
if idx == ():
167165
return sym

0 commit comments

Comments
 (0)