Skip to content

Commit e5747c2

Browse files
committed
chore(deps): remove unnecessary deps
1 parent 320b7cf commit e5747c2

4 files changed

Lines changed: 6 additions & 8 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ classifiers = [
2626

2727
dependencies = [
2828
"array-api-compat>=1.11.2",
29-
"cm-time>=0.1.2",
3029
"frozendict>=2.4.6",
3130
]
3231
urls."Bug Tracker" = "https://github.com/34j/array-api-jit/issues"
@@ -36,6 +35,7 @@ urls.repository = "https://github.com/34j/array-api-jit"
3635

3736
[dependency-groups]
3837
dev = [
38+
"cm-time>=0.1.2",
3939
"jax>=0.4.30",
4040
"numba>=0.60.0",
4141
"pytest>=8,<9",

src/array_api_jit/_main.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# https://github.com/search?q=gumerov+translation+language%3APython&type=code&l=Python
21
import importlib.util
32
import warnings
43
from collections.abc import Callable, Mapping, Sequence
@@ -14,7 +13,6 @@
1413
is_numpy_namespace,
1514
is_torch_namespace,
1615
)
17-
from frozendict import frozendict
1816

1917
if importlib.util.find_spec("numba"):
2018
import numpy as np
@@ -123,8 +121,8 @@ def jit(
123121
"""
124122

125123
def new_decorator(f: Callable[Pinner, Tinner]) -> Callable[Pinner, Tinner]:
126-
decorator_args_ = frozendict(decorator_args or {})
127-
decorator_kwargs_ = frozendict(decorator_kwargs or {})
124+
decorator_args_ = decorator_args or {}
125+
decorator_kwargs_ = decorator_kwargs or {}
128126
decorator_ = decorator or {}
129127

130128
@cache

tests/test_main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_jit(xp: Any) -> None:
116116
print(xp.__name__, name)
117117
for i in range(20):
118118
with timer() as timer_:
119-
x = xp.arange(1000000, dtype=xp.float32)
119+
x = xp.arange(1000000, dtype=xp.float32) / 1000000
120120
p = func(x, 10)
121121
assert p.shape == (1000000, 10)
122122
t[name] = timer_.elapsed

uv.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)