Skip to content

Commit fd87c2f

Browse files
committed
merge
1 parent bbe05a5 commit fd87c2f

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

pixi.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/array_api_extra/_lib/_at.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@
1515
is_jax_array,
1616
is_writeable_array,
1717
)
18-
from ._utils._typing import Array, SetIndex
1918
from ._utils._helpers import meta_namespace
20-
from ._utils._typing import Array, Index
19+
from ._utils._typing import Array, SetIndex
2120

2221

2322
class _AtOp(Enum):

src/array_api_extra/_lib/_funcs.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@
77
import warnings
88
from collections.abc import Callable, Sequence
99
from types import ModuleType
10-
from typing import cast
10+
from typing import cast, overload
1111

1212
from ._at import at
1313
from ._utils import _compat, _helpers
14-
from ._utils._compat import array_namespace, is_jax_array
15-
from ._utils._helpers import asarrays, eager_shape, ndindex
1614
from ._utils._compat import (
1715
array_namespace,
1816
is_dask_namespace,
1917
is_jax_array,
2018
is_jax_namespace,
2119
)
22-
from ._utils._helpers import asarrays, meta_namespace, ndindex
20+
from ._utils._helpers import asarrays, eager_shape, meta_namespace, ndindex
2321
from ._utils._typing import Array
2422

2523
__all__ = [

tests/test_funcs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@
2828
from array_api_extra._lib import Backend
2929
from array_api_extra._lib._testing import xp_assert_close, xp_assert_equal
3030
from array_api_extra._lib._utils._compat import device as get_device
31-
from array_api_extra._lib._utils._helpers import eager_shape, ndindex
32-
from array_api_extra._lib._utils._typing import Array, Device
33-
from array_api_extra._lib._utils._helpers import asarrays, ndindex
31+
from array_api_extra._lib._utils._helpers import asarrays, eager_shape, ndindex
3432
from array_api_extra._lib._utils._typing import Array, Device, DType
3533
from array_api_extra.testing import lazy_xp_function
3634

tests/test_helpers.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,14 @@
88
from array_api_extra._lib._testing import xp_assert_equal
99
from array_api_extra._lib._utils._compat import array_namespace
1010
from array_api_extra._lib._utils._compat import device as get_device
11-
from array_api_extra._lib._utils._helpers import asarrays, eager_shape, in1d, ndindex
11+
from array_api_extra._lib._utils._helpers import (
12+
asarrays,
13+
eager_shape,
14+
in1d,
15+
meta_namespace,
16+
ndindex,
17+
)
1218
from array_api_extra._lib._utils._typing import Array, Device, DType
13-
from array_api_extra._lib._utils._helpers import asarrays, in1d, meta_namespace, ndindex
14-
from array_api_extra._lib._utils._typing import Device
1519
from array_api_extra.testing import lazy_xp_function
1620

1721
# mypy: disable-error-code=no-untyped-usage

0 commit comments

Comments
 (0)