diff options
author | Josh Wilson <person142@users.noreply.github.com> | 2020-06-07 18:53:03 -0700 |
---|---|---|
committer | Josh Wilson <person142@users.noreply.github.com> | 2020-06-07 18:53:03 -0700 |
commit | 4b5f00e228eb62305302e1f3862c2c93d2abe075 (patch) | |
tree | 16298d26a642071b49e6397f7783db20f91926a1 /test_requirements.txt | |
parent | f09b27d99121c9e47d3b5ec59dc23eeec1b20b1e (diff) | |
download | numpy-4b5f00e228eb62305302e1f3862c2c93d2abe075.tar.gz |
MAINT: only run typing tests on python > 3.6 and < 3.9
Mypy doesn't work with 3.9 yet, and 3.6 doesn't work because it
doesn't the py.typed marker.
Diffstat (limited to 'test_requirements.txt')
-rw-r--r-- | test_requirements.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test_requirements.txt b/test_requirements.txt index 5492cbf98..b26062021 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -7,6 +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 -mypy==0.770; platform_python_implementation != "PyPy" +# 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 |