File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff 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" ))
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments