Skip to content

Commit 9ce7fbe

Browse files
authored
Fix __complex__ type annotation
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com> Original NumPy Commit: 91153af22ffc07d2b7653d406d93e99d136e89d6
1 parent e737dcd commit 9ce7fbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

array_api_strict/_array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def __bool__(self: Array, /) -> bool:
470470
res = self._array.__bool__()
471471
return res
472472

473-
def __complex__(self: Array, /) -> float:
473+
def __complex__(self: Array, /) -> complex:
474474
"""
475475
Performs the operation __complex__.
476476
"""

0 commit comments

Comments
 (0)