diff options
| -rw-r--r-- | numpy/typing/tests/data/reveal/arrayterator.py | 2 | ||||
| -rw-r--r-- | numpy/typing/tests/data/reveal/testing.py | 4 | ||||
| -rw-r--r-- | test_requirements.txt | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/numpy/typing/tests/data/reveal/arrayterator.py b/numpy/typing/tests/data/reveal/arrayterator.py index b57861d00..ea4e75612 100644 --- a/numpy/typing/tests/data/reveal/arrayterator.py +++ b/numpy/typing/tests/data/reveal/arrayterator.py @@ -10,7 +10,7 @@ reveal_type(ar_iter.start) # E: builtins.list[builtins.int] reveal_type(ar_iter.stop) # E: builtins.list[builtins.int] reveal_type(ar_iter.step) # E: builtins.list[builtins.int] reveal_type(ar_iter.shape) # E: builtins.tuple[builtins.int] -reveal_type(ar_iter.flat) # E: 'typing.Generator[{int64}, None, None] +reveal_type(ar_iter.flat) # E: typing.Generator[{int64}, None, None] reveal_type(ar_iter.__array__()) # E: numpy.ndarray[Any, numpy.dtype[{int64}]] diff --git a/numpy/typing/tests/data/reveal/testing.py b/numpy/typing/tests/data/reveal/testing.py index e244c225c..2b040ff60 100644 --- a/numpy/typing/tests/data/reveal/testing.py +++ b/numpy/typing/tests/data/reveal/testing.py @@ -29,8 +29,8 @@ reveal_type(np.testing.clear_and_catch_warnings(modules=[np.testing])) # E: _cl reveal_type(np.testing.clear_and_catch_warnings(True)) # E: _clear_and_catch_warnings_with_records reveal_type(np.testing.clear_and_catch_warnings(False)) # E: _clear_and_catch_warnings_without_records reveal_type(np.testing.clear_and_catch_warnings(bool_obj)) # E: clear_and_catch_warnings -reveal_type(np.testing.clear_and_catch_warnings.class_modules) # E: tuple[_importlib_modulespec.ModuleType] -reveal_type(np.testing.clear_and_catch_warnings.modules) # E: set[_importlib_modulespec.ModuleType] +reveal_type(np.testing.clear_and_catch_warnings.class_modules) # E: tuple[types.ModuleType] +reveal_type(np.testing.clear_and_catch_warnings.modules) # E: set[types.ModuleType] with np.testing.clear_and_catch_warnings(True) as c1: reveal_type(c1) # E: builtins.list[warnings.WarningMessage] diff --git a/test_requirements.txt b/test_requirements.txt index ca0edfbb4..6fdcbb02a 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -11,5 +11,5 @@ cffi # For testing types. Notes on the restrictions: # - Mypy relies on C API features not present in PyPy # - There is no point in installing typing_extensions without mypy -mypy==0.812; platform_python_implementation != "PyPy" +mypy==0.902; platform_python_implementation != "PyPy" typing_extensions==3.10.0.0; platform_python_implementation != "PyPy" |
