Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
warnings_and_errors.pyi12 linesDownload Raw Back to reveal
1from typing import assert_type
2
3import numpy.exceptions as ex
4
5assert_type(ex.ModuleDeprecationWarning(), ex.ModuleDeprecationWarning)
6assert_type(ex.VisibleDeprecationWarning(), ex.VisibleDeprecationWarning)
7assert_type(ex.ComplexWarning(), ex.ComplexWarning)
8assert_type(ex.RankWarning(), ex.RankWarning)
9assert_type(ex.TooHardError(), ex.TooHardError)
10assert_type(ex.AxisError("test"), ex.AxisError)
11assert_type(ex.AxisError(5, 1), ex.AxisError)
12 
codekingpro/portable-devtools · Team Ai