Skip to content

Commit 2d83a23

Browse files
committed
WIP MAINT: upgrade to array-api-compat >=1.12
1 parent 84b1f0b commit 2d83a23

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
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.11.2,<2"]
29+
dependencies = ["array-api-compat>=1.12.0,<2"]
3030

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

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

5353
[tool.pixi.pypi-dependencies]
5454
array-api-extra = { path = ".", editable = true }

src/array_api_extra/_lib/_utils/_helpers.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,13 +296,9 @@ def capabilities(xp: ModuleType) -> dict[str, int]:
296296
# No __array_namespace_info__(); no indexing by sparse arrays
297297
return {"boolean indexing": False, "data-dependent shapes": True}
298298
out = xp.__array_namespace_info__().capabilities()
299-
if is_jax_namespace(xp):
299+
if is_jax_namespace(xp) and out["boolean indexing"]:
300300
# FIXME https://github.com/jax-ml/jax/issues/27418
301+
# Fixed in jax >=0.6.0
301302
out = out.copy()
302303
out["boolean indexing"] = False
303-
if is_dask_namespace(xp):
304-
# FIXME https://github.com/data-apis/array-api-compat/pull/290
305-
out = out.copy()
306-
out["boolean indexing"] = True
307-
out["data-dependent shapes"] = True
308304
return out

0 commit comments

Comments
 (0)