summaryrefslogtreecommitdiff
path: root/numpy/tests/reveal/warnings_and_errors.py
blob: c428deb7a164b885c17b897b949ba40b421fd5db (plain)
1
2
3
4
5
6
7
8
9
10
from typing import Type

import numpy as np

reveal_type(np.ModuleDeprecationWarning())  # E: numpy.ModuleDeprecationWarning
reveal_type(np.VisibleDeprecationWarning())  # E: numpy.VisibleDeprecationWarning
reveal_type(np.ComplexWarning())  # E: numpy.ComplexWarning
reveal_type(np.RankWarning())  # E: numpy.RankWarning
reveal_type(np.TooHardError())  # E: numpy.TooHardError
reveal_type(np.AxisError(1))  # E: numpy.AxisError