Skip to content

Commit 38e88b5

Browse files
committed
code review
1 parent 42da174 commit 38e88b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/array_api_extra/_lib/_funcs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,9 @@ def isclose(
312312
rtol: float = 1e-05,
313313
atol: float = 1e-08,
314314
equal_nan: bool = False,
315-
xp: ModuleType | None = None,
315+
xp: ModuleType,
316316
) -> Array: # numpydoc ignore=PR01,RT01
317317
"""See docstring in array_api_extra._delegation."""
318-
xp = array_namespace(a, b) if xp is None else xp
319318

320319
a_inexact = xp.isdtype(a.dtype, ("real floating", "complex floating"))
321320
b_inexact = xp.isdtype(b.dtype, ("real floating", "complex floating"))

src/array_api_extra/_lib/_testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def xp_assert_close(
136136
137137
Notes
138138
-----
139-
The default `atol` and `rtol` differ from `xp.all(xpx.allclose(a, b))`.
139+
The default `atol` and `rtol` differ from `xp.all(xpx.isclose(a, b))`.
140140
"""
141141
xp = _check_ns_shape_dtype(actual, desired)
142142

0 commit comments

Comments
 (0)