Skip to content

Commit 3e2d46d

Browse files
committed
Add missing requires_api_version decorator to hypot()
1 parent f5fbf78 commit 3e2d46d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

array_api_strict/_elementwise_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,6 +455,7 @@ def greater_equal(x1: Array, x2: Array, /) -> Array:
455455
x1, x2 = Array._normalize_two_args(x1, x2)
456456
return Array._new(np.greater_equal(x1._array, x2._array))
457457

458+
@requires_api_version('2023.12')
458459
def hypot(x1: Array, x2: Array, /) -> Array:
459460
"""
460461
Array API compatible wrapper for :py:func:`np.hypot <numpy.hypot>`.

0 commit comments

Comments
 (0)