Skip to content

Commit e5830fb

Browse files
committed
ENH: New function lazy_apply
1 parent 6ee70c0 commit e5830fb

File tree

7 files changed

+361
-2
lines changed

7 files changed

+361
-2
lines changed

docs/api-reference.md

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
expand_dims
1414
isclose
1515
kron
16+
lazy_apply
1617
nunique
1718
pad
1819
setdiff1d

docs/conf.py

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@
5353

5454
intersphinx_mapping = {
5555
"python": ("https://docs.python.org/3", None),
56+
"numpy": ("https://numpy.org/doc/stable", None),
57+
"dask": ("https://docs.dask.org/en/stable", None),
5658
"jax": ("https://jax.readthedocs.io/en/latest", None),
5759
}
5860

pixi.lock

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

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ furo = ">=2023.08.17"
9898
myst-parser = ">=0.13"
9999
sphinx-copybutton = "*"
100100
sphinx-autodoc-typehints = "*"
101+
numpy = "*"
101102

102103
[tool.pixi.feature.docs.tasks]
103104
docs = { cmd = "sphinx-build . build/", cwd = "docs" }
@@ -283,6 +284,8 @@ messages_control.disable = [
283284
"fixme", # allow FIXME comments
284285
"line-too-long", # ruff handles this
285286
"missing-function-docstring", # numpydoc handles this
287+
"import-error", # mypy handles this
288+
"import-outside-toplevel", # optional dependencies
286289
]
287290

288291

src/array_api_extra/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
setdiff1d,
1313
sinc,
1414
)
15+
from ._lib._lazy import lazy_apply
1516

1617
__version__ = "0.6.1.dev0"
1718

@@ -25,6 +26,7 @@
2526
"expand_dims",
2627
"isclose",
2728
"kron",
29+
"lazy_apply",
2830
"nunique",
2931
"pad",
3032
"setdiff1d",

0 commit comments

Comments
 (0)