From 097bd4ab500b7af58be14e2d16ef475ff10bff65 Mon Sep 17 00:00:00 2001 From: Bas van Beek <43369155+BvB93@users.noreply.github.com> Date: Sun, 26 Dec 2021 13:38:13 +0100 Subject: [PATCH] TYP,TST: Bump mypy to 0.930 --- environment.yml | 2 +- numpy/typing/tests/data/fail/scalars.pyi | 2 +- test_requirements.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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"