diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2021-05-09 15:25:03 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-09 15:25:03 -0600 |
commit | a438741bf5e5275800d151404f33f1fc242d0697 (patch) | |
tree | 0ce25b9f2ec1855284b5b48369f22ebdd3ebad71 | |
parent | 0eedcd13d60779888ee48888334508127989d385 (diff) | |
parent | 863982159be605d719584e9551a0d6d575823406 (diff) | |
download | numpy-a438741bf5e5275800d151404f33f1fc242d0697.tar.gz |
Merge pull request #18953 from charris/fix-mypy-test
BUG: Fix failing mypy test in 1.20.x.
-rw-r--r-- | numpy/typing/tests/data/fail/array_constructors.py | 4 | ||||
-rw-r--r-- | test_requirements.txt | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/numpy/typing/tests/data/fail/array_constructors.py b/numpy/typing/tests/data/fail/array_constructors.py index 9cb59fe5f..f13fdacb2 100644 --- a/numpy/typing/tests/data/fail/array_constructors.py +++ b/numpy/typing/tests/data/fail/array_constructors.py @@ -7,10 +7,10 @@ np.require(a, requirements=1) # E: No overload variant np.require(a, requirements="TEST") # E: incompatible type np.zeros("test") # E: incompatible type -np.zeros() # E: Too few arguments +np.zeros() # E: Missing positional argument np.ones("test") # E: incompatible type -np.ones() # E: Too few arguments +np.ones() # E: Missing positional argument np.array(0, float, True) # E: Too many positional diff --git a/test_requirements.txt b/test_requirements.txt index d6c31774a..4dbda925b 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -10,6 +10,6 @@ pickle5; python_version == '3.7' and platform_python_implementation != 'PyPy' cffi # For testing types. Notes on the restrictions: # - Mypy relies on C API features not present in PyPy -# - Mypy doesn't currently work on Python 3.9 -mypy==0.790; platform_python_implementation != "PyPy" -typing_extensions +# - There is no point in installing typing_extensions without mypy +mypy==0.812; platform_python_implementation != "PyPy" +typing_extensions==3.10.0.0; platform_python_implementation != "PyPy" |