diff --git a/environment.yml b/environment.yml index fb29573d9aae..58305e68171c 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 94fe3f71e646..96447053888e 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 673506b3d7b4..e33649c4a37f 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"