Skip to content

Commit f9c45f8

Browse files
authored
Merge pull request #20680 from charris/backport-20663
TYP,TST: Bump mypy to 0.930
2 parents b3d8274 + b5f179b commit f9c45f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919
- pytest-xdist
2020
- hypothesis
2121
# For type annotations
22-
- mypy=0.920
22+
- mypy=0.930
2323
# For building docs
2424
- sphinx=4.1.1
2525
- numpydoc=1.1.0

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ np.complex64([]) # E: incompatible type
3131
np.complex64(1, 2) # E: Too many arguments
3232
# TODO: protocols (can't check for non-existent protocols w/ __getattr__)
3333

34-
np.datetime64(0) # E: non-matching overload
34+
np.datetime64(0) # E: No overload variant
3535

3636
class A:
3737
def __float__(self):

test_requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ pytest-cov==3.0.0
99
cffi; python_version < '3.10'
1010
# For testing types. Notes on the restrictions:
1111
# - Mypy relies on C API features not present in PyPy
12-
mypy==0.920; platform_python_implementation != "PyPy"
12+
mypy==0.930; platform_python_implementation != "PyPy"

0 commit comments

Comments
 (0)