Skip to content

Commit 72f91cc

Browse files
committed
Prevent recursion
1 parent 94e824a commit 72f91cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

array_api_compat/common/_helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,11 +1047,11 @@ def where(condition, x=None, y=None, /, copy: bool | None = True):
10471047
Raise ValueError if a copy cannot be avoided.
10481048
"""
10491049
if x is None and y is None:
1050-
xp = array_namespace(condition)
1050+
xp = array_namespace(condition, use_compat=False)
10511051
return xp.where(condition)
10521052

10531053
copy = _parse_copy_param(x, copy)
1054-
xp = array_namespace(condition, x, y)
1054+
xp = array_namespace(condition, x, y, use_compat=False)
10551055
if copy:
10561056
return xp.where(condition, x, y)
10571057
else:

0 commit comments

Comments
 (0)