Skip to content

Commit

Permalink
Merge pull request #20680 from charris/backport-20663
Browse files Browse the repository at this point in the history
TYP,TST: Bump mypy to 0.930
  • Loading branch information
charris authored Dec 30, 2021
2 parents b3d8274 + b5f179b commit f9c45f8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion numpy/typing/tests/data/fail/scalars.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion test_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f9c45f8

Please sign in to comment.