summaryrefslogtreecommitdiff
path: root/numpy/tests
diff options
context:
space:
mode:
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