projektAI/venv/Lib/site-packages/numpy/typing/tests/data/fail/warnings_and_errors.py

8 lines
280 B
Python
Raw Normal View History

2021-06-06 22:13:05 +02:00
import numpy as np
np.AxisError(1.0) # E: Argument 1 to "AxisError" has incompatible type
np.AxisError(1, ndim=2.0) # E: Argument "ndim" to "AxisError" has incompatible type
np.AxisError(
2, msg_prefix=404 # E: Argument "msg_prefix" to "AxisError" has incompatible type
)