diff options
author | Josh Wilson <person142@users.noreply.github.com> | 2020-06-07 12:25:19 -0700 |
---|---|---|
committer | Josh Wilson <person142@users.noreply.github.com> | 2020-06-07 12:25:19 -0700 |
commit | 3fee17a0da9277ee21e20018beeb2a42ef12a02f (patch) | |
tree | 58ca04f7d6a7ab603d9d7327d488f0bf5986cf4a /numpy/tests/typing/fail/simple.py | |
parent | 11b95d15f10c2bc652ed19d5e27efa0384396cb8 (diff) | |
download | numpy-3fee17a0da9277ee21e20018beeb2a42ef12a02f.tar.gz |
MAINT: move typing tests cases into a subdirectory of numpy/tests
Diffstat (limited to 'numpy/tests/typing/fail/simple.py')
-rw-r--r-- | numpy/tests/typing/fail/simple.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/numpy/tests/typing/fail/simple.py b/numpy/tests/typing/fail/simple.py new file mode 100644 index 000000000..b5e9d1b13 --- /dev/null +++ b/numpy/tests/typing/fail/simple.py @@ -0,0 +1,10 @@ +"""Simple expression that should fail with mypy.""" + +import numpy as np + +# Array creation routines checks +np.zeros("test") # E: incompatible type +np.zeros() # E: Too few arguments + +np.ones("test") # E: incompatible type +np.ones() # E: Too few arguments |