diff options
| author | Bas van Beek <43369155+BvB93@users.noreply.github.com> | 2020-09-01 14:10:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-01 13:10:36 +0100 |
| commit | 3fbc84a5662ffd985a071b0bbdcd59e655041ad3 (patch) | |
| tree | 8e162e1fa2ff6b476139fba8d2d0c36f60af6f38 /numpy/tests | |
| parent | 263b293d9caf8f54183509275a853de9b8d8839f (diff) | |
| download | numpy-3fbc84a5662ffd985a071b0bbdcd59e655041ad3.tar.gz | |
ENH: typing: Make `np.complexfloating` generic w.r.t. `np.floating` (#17172)
Diffstat (limited to 'numpy/tests')
| -rw-r--r-- | numpy/tests/typing/reveal/scalars.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/tests/typing/reveal/scalars.py b/numpy/tests/typing/reveal/scalars.py index 8a9555fc3..882fe9612 100644 --- a/numpy/tests/typing/reveal/scalars.py +++ b/numpy/tests/typing/reveal/scalars.py @@ -28,3 +28,6 @@ reveal_type(td - 1) # E: numpy.timedelta64 reveal_type(td / 1.0) # E: numpy.timedelta64 reveal_type(td / td) # E: float reveal_type(td % td) # E: numpy.timedelta64 + +reveal_type(np.complex64().real) # E: numpy.float32 +reveal_type(np.complex128().imag) # E: numpy.float64 |
