Skip to content

Commit 8e34ec4

Browse files
authored
Apply suggestion from @lucascolley
1 parent 719daa1 commit 8e34ec4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)