Skip to content

Commit

Permalink
Fix __complex__ type annotation
Browse files Browse the repository at this point in the history
Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
  • Loading branch information
2 people authored and charris committed Jun 15, 2023
1 parent 1ee9a58 commit 52b8163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/array_api/_array_object.py
Expand Up @@ -470,7 +470,7 @@ def __bool__(self: Array, /) -> bool:
res = self._array.__bool__()
return res

def __complex__(self: Array, /) -> float:
def __complex__(self: Array, /) -> complex:
"""
Performs the operation __complex__.
"""
Expand Down

0 comments on commit 52b8163

Please sign in to comment.