summaryrefslogtreecommitdiff
path: root/numpy/tests
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2020-09-01 14:10:36 +0200
committerGitHub <noreply@github.com>2020-09-01 13:10:36 +0100
commit3fbc84a5662ffd985a071b0bbdcd59e655041ad3 (patch)
tree8e162e1fa2ff6b476139fba8d2d0c36f60af6f38 /numpy/tests
parent263b293d9caf8f54183509275a853de9b8d8839f (diff)
downloadnumpy-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.py3
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