Skip to content

Commit ccffddf

Browse files
committed
ENH: New functions lazy_raise, lazy_warn, and lazy_wait_on
1 parent de67dc1 commit ccffddf

File tree

9 files changed

+386
-47
lines changed

9 files changed

+386
-47
lines changed

docs/api-lazy.md

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ lazy backends, e.g. Dask or Jax:
1010
:toctree: generated
1111
1212
lazy_apply
13+
lazy_raise
14+
lazy_wait_on
15+
lazy_warn
1316
testing.lazy_xp_function
1417
testing.patch_lazy_xp_functions
1518
```

docs/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"numpy": ("https://numpy.org/doc/stable", None),
5757
"dask": ("https://docs.dask.org/en/stable", None),
5858
"jax": ("https://jax.readthedocs.io/en/latest", None),
59+
"equinox": ("https://docs.kidger.site/equinox/", None),
5960
}
6061

6162
nitpick_ignore = [

pixi.lock

+42-44
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ classifiers = [
2626
"Typing :: Typed",
2727
]
2828
dynamic = ["version"]
29-
dependencies = ["array-api-compat>=1.10.0,<2"]
29+
# dependencies = ["array-api-compat>=1.10.0,<2"] # DNM
3030

3131
[project.urls]
3232
Homepage = "https://github.com/data-apis/array-api-extra"
@@ -48,10 +48,11 @@ platforms = ["linux-64", "osx-arm64", "win-64"]
4848

4949
[tool.pixi.dependencies]
5050
python = ">=3.10,<3.14"
51-
array-api-compat = ">=1.10.0,<2"
51+
# array-api-compat = ">=1.10.0,<2" # DNM
5252

5353
[tool.pixi.pypi-dependencies]
5454
array-api-extra = { path = ".", editable = true }
55+
array-api-compat = { git = "https://github.com/data-apis/array-api-compat" } # DNM
5556

5657
[tool.pixi.feature.lint.dependencies]
5758
typing-extensions = "*"

src/array_api_extra/__init__.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
setdiff1d,
1313
sinc,
1414
)
15-
from ._lib._lazy import lazy_apply
15+
from ._lib._lazy import lazy_apply, lazy_raise, lazy_wait_on, lazy_warn
1616

1717
__version__ = "0.6.1.dev0"
1818

@@ -27,6 +27,9 @@
2727
"isclose",
2828
"kron",
2929
"lazy_apply",
30+
"lazy_raise",
31+
"lazy_wait_on",
32+
"lazy_warn",
3033
"nunique",
3134
"pad",
3235
"setdiff1d",

0 commit comments

Comments
 (0)