Skip to content

Commit

Permalink
Merge pull request #18953 from charris/fix-mypy-test
Browse files Browse the repository at this point in the history
BUG: Fix failing mypy test in 1.20.x.
  • Loading branch information
charris committed May 9, 2021
2 parents 0eedcd1 + 8639821 commit a438741
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions numpy/typing/tests/data/fail/array_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
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

Expand Down
6 changes: 3 additions & 3 deletions test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit a438741

Please sign in to comment.