Skip to content

Commit 518a9a7

Browse files
committed
Apply suggestion from @lucascolley
1 parent 0e7bef6 commit 518a9a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/array_api_compat/common/_helpers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ def your_function(x, y):
673673
namespaces = [ns for ns in namespaces if ns.__name__ in names]
674674

675675
try:
676-
(xp,) = namespaces
676+
(xp,) = tuple(namespaces)
677677
return xp
678678
except ValueError:
679679
if not namespaces:

0 commit comments

Comments
 (0)