Thanks to visit codestin.com
Credit goes to github.com

Skip to content

TYP,TST: Bump mypy to 0.930 #20663

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"