Skip to content

Commit 7ed62d2

Browse files
authored
Merge pull request numpy#27652 from jorenham/typing/mypy-1.13.0
TYP,TST: Bump ``mypy`` from ``1.11.1`` to ``1.13.0``
2 parents 7785ba9 + b62dee9 commit 7ed62d2

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ dependencies:
2626
- hypothesis
2727
# For type annotations
2828
- typing_extensions>=4.2.0 # needed for python < 3.10
29-
- mypy=1.11.1
29+
- mypy=1.13.0
30+
- orjson # makes mypy faster
3031
# For building docs
3132
- sphinx>=4.5.0
3233
- sphinx-copybutton

numpy/typing/tests/data/fail/testing.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ np.testing.assert_array_max_ulp(AR_U, AR_U) # E: incompatible type
2323
np.testing.assert_warns(warning_class=RuntimeWarning, func=func) # E: No overload variant
2424
np.testing.assert_no_warnings(func=func) # E: No overload variant
2525
np.testing.assert_no_warnings(func, None) # E: Too many arguments
26-
np.testing.assert_no_warnings(func, test=None) # E: Unexpected keyword argument
26+
np.testing.assert_no_warnings(func, test=None) # E: No overload variant
2727

2828
np.testing.assert_no_gc_cycles(func=func) # E: No overload variant

requirements/test_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cffi; python_version < '3.10'
1414
# For testing types. Notes on the restrictions:
1515
# - Mypy relies on C API features not present in PyPy
1616
# NOTE: Keep mypy in sync with environment.yml
17-
mypy==1.11.1; platform_python_implementation != "PyPy"
17+
mypy[faster-cache]==1.13.0; platform_python_implementation != "PyPy"
1818
typing_extensions>=4.2.0
1919
# for optional f2py encoding detection
2020
charset-normalizer

0 commit comments

Comments
 (0)