summaryrefslogtreecommitdiff
path: root/test_requirements.txt
diff options
context:
space:
mode:
authorMatti Picus <matti.picus@gmail.com>2020-06-09 08:25:36 +0300
committerGitHub <noreply@github.com>2020-06-09 08:25:36 +0300
commite73c8e5479297f235b37fba91d6d0e8464be66a6 (patch)
tree713099e98dbc7f9c3d0d87564faac52e2046b463 /test_requirements.txt
parentd647ef2d98852e322d487d6045d5860223dcda79 (diff)
parent2e238e411a4875d470a40cd0c351056ca30882ed (diff)
downloadnumpy-e73c8e5479297f235b37fba91d6d0e8464be66a6.tar.gz
Merge pull request #16515 from person142/add-type-stubs
ENH: add type stubs from numpy-stubs
Diffstat (limited to 'test_requirements.txt')
-rw-r--r--test_requirements.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/test_requirements.txt b/test_requirements.txt
index 3a7906b57..a555b8295 100644
--- a/test_requirements.txt
+++ b/test_requirements.txt
@@ -7,3 +7,9 @@ pickle5; python_version == '3.7'
pickle5; python_version == '3.6' and platform_python_implementation != 'PyPy'
# for numpy.random.test.test_extending
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
+# - Python 3.6 doesn't work because it doesn't understand py.typed
+mypy==0.770; platform_python_implementation != "PyPy" and python_version > "3.6" and python_version < "3.9"
+typing_extensions