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

8 lines
228 B
Python
Raw Normal View History

2021-06-06 22:13:05 +02:00
import numpy as np
np.sin.nin + "foo" # E: Unsupported operand types
np.sin(1, foo="bar") # E: Unexpected keyword argument
np.sin(1, extobj=["foo", "foo", "foo"]) # E: incompatible type
np.abs(None) # E: incompatible type