Skip to content

Commit a659e56

Browse files
committed
Remove match_args for python3.9
1 parent abf80c9 commit a659e56

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

python/tests/tsutil.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
import tskit
4040
import tskit.provenance as provenance
4141

42+
np.random.randint(-127, 127, 22).astype(np.int8)
43+
4244

4345
def random_bytes(max_length):
4446
"""

python/tskit/jit/numba.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
# Decorator that makes a jited dataclass by removing certain methods
1414
# that are not compatible with Numba's JIT compilation.
1515
def jitdataclass(cls):
16-
dc_cls = dataclass(cls, eq=False, match_args=False)
16+
dc_cls = dataclass(cls, eq=False)
1717
del dc_cls.__dataclass_params__
1818
del dc_cls.__dataclass_fields__
1919
del dc_cls.__repr__
2020
del dc_cls.__replace__
21+
del dc_cls.__match_args__
2122
return numba.experimental.jitclass(dc_cls)
2223

2324

0 commit comments

Comments
 (0)