Skip to content

Commit be296e2

Browse files
authored
Merge pull request numpy#27178 from jorenham/typing/mypy-1.11.1
TYP,TST: Bump mypy to 1.11.1
2 parents c15e5f3 + be116b0 commit be296e2

File tree

4 files changed

+4
-14
lines changed

4 files changed

+4
-14
lines changed

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
- hypothesis
2727
# For type annotations
2828
- typing_extensions>=4.2.0 # needed for python < 3.10
29-
- mypy=1.10.0
29+
- mypy=1.11.1
3030
# For building docs
3131
- sphinx>=4.5.0
3232
- sphinx-copybutton

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

Lines changed: 0 additions & 11 deletions
This file was deleted.

numpy/typing/tests/data/pass/literal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
(KACF, partial(np.ones_like, AR)),
3232
(KACF, partial(np.empty_like, AR)),
3333
(KACF, partial(np.full_like, AR, 1)),
34-
(KACF, partial(np.add, 1, 1)), # i.e. np.ufunc.__call__
34+
# __call__ is needed due to mypy 1.11 bugs (#17620, #17631)
35+
(KACF, partial(np.add.__call__, 1, 1)), # i.e. np.ufunc.__call__
3536
(ACF, partial(np.reshape, AR, 1)),
3637
(KACF, partial(np.ravel, AR)),
3738
(KACF, partial(np.asarray, 1)),

requirements/test_requirements.txt

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

0 commit comments

Comments
 (0)