summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBas van Beek <43369155+BvB93@users.noreply.github.com>2021-12-26 13:38:13 +0100
committerBas van Beek <43369155+BvB93@users.noreply.github.com>2021-12-26 13:38:13 +0100
commit097bd4ab500b7af58be14e2d16ef475ff10bff65 (patch)
tree5f2a81f1c17a9be716219b42560d7aa7d45c8946
parent6dfbe0340ac409094bb907de8464264916924ddd (diff)
downloadnumpy-097bd4ab500b7af58be14e2d16ef475ff10bff65.tar.gz
TYP,TST: Bump mypy to 0.930
-rw-r--r--environment.yml2
-rw-r--r--numpy/typing/tests/data/fail/scalars.pyi2
-rw-r--r--test_requirements.txt2
3 files changed, 3 insertions, 3 deletions
diff --git a/environment.yml b/environment.yml
index fb29573d9..58305e681 100644
--- a/environment.yml
+++ b/environment.yml
@@ -19,7 +19,7 @@ dependencies:
- pytest-xdist
- hypothesis
# For type annotations
- - mypy=0.920
+ - mypy=0.930
# For building docs
- sphinx=4.1.1
- numpydoc=1.1.0
diff --git a/numpy/typing/tests/data/fail/scalars.pyi b/numpy/typing/tests/data/fail/scalars.pyi
index 94fe3f71e..964470538 100644
--- a/numpy/typing/tests/data/fail/scalars.pyi
+++ b/numpy/typing/tests/data/fail/scalars.pyi
@@ -31,7 +31,7 @@ np.complex64([]) # E: incompatible type
np.complex64(1, 2) # E: Too many arguments
# TODO: protocols (can't check for non-existent protocols w/ __getattr__)
-np.datetime64(0) # E: non-matching overload
+np.datetime64(0) # E: No overload variant
class A:
def __float__(self):
diff --git a/test_requirements.txt b/test_requirements.txt
index 673506b3d..e33649c4a 100644
--- a/test_requirements.txt
+++ b/test_requirements.txt
@@ -9,4 +9,4 @@ pytest-cov==3.0.0
cffi; python_version < '3.10'
# For testing types. Notes on the restrictions:
# - Mypy relies on C API features not present in PyPy
-mypy==0.920; platform_python_implementation != "PyPy"
+mypy==0.930; platform_python_implementation != "PyPy"