Skip to content

Commit 5922b5f

Browse files
committed
ruff
1 parent 7081275 commit 5922b5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

array_api_compat/common/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def _jax_namespace(api_version: str | None, use_compat: bool | None) -> Namespac
561561
# JAX v0.4.32 and newer implements the array API directly in jax.numpy.
562562
# For older JAX versions, it is available via jax.experimental.array_api.
563563
# jnp.Array objects gain the __array_namespace__ method.
564-
import jax.experimental.array_api
564+
import jax.experimental.array_api # noqa: F401
565565
# Test api_version
566566
return jnp.empty(0).__array_namespace__(api_version=api_version)
567567

tests/test_array_namespace.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def test_jax_backwards_compat():
5454
jax.experimental.array_api has not been imported yet.
5555
"""
5656
pytest.importorskip("jax")
57-
code = f"""\
57+
code = """\
5858
import sys
5959
import jax.numpy
6060
import array_api_compat

0 commit comments

Comments
 (0)