HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/local/lib/python3.10/dist-packages/numpy/typing/tests/data/reveal/warnings_and_errors.pyi
import sys

import numpy as np

if sys.version_info >= (3, 11):
    from typing import assert_type
else:
    from typing_extensions import assert_type

assert_type(np.ModuleDeprecationWarning(), np.ModuleDeprecationWarning)
assert_type(np.VisibleDeprecationWarning(), np.VisibleDeprecationWarning)
assert_type(np.ComplexWarning(), np.ComplexWarning)
assert_type(np.RankWarning(), np.RankWarning)
assert_type(np.TooHardError(), np.TooHardError)
assert_type(np.AxisError("test"), np.AxisError)
assert_type(np.AxisError(5, 1), np.AxisError)