-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Bump mypy from 0.812 to 0.931 in /tools #33082
Merged
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b727257
Bump mypy from 0.812 to 0.931 in /tools
dependabot[bot] 6268ce9
squash! Bump mypy from 0.812 to 0.910 in /tools
gsnedders 3165de0
Make mypy warn when it thinks code is unreachable
gsnedders 4e322e0
Additional fixes
foolip 1ac6a58
Drop List[Any]
foolip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
mypy==0.812 | ||
mypy==0.931 | ||
mypy-extensions==0.4.3 | ||
toml==0.10.2 | ||
typed-ast==1.4.3 | ||
types-atomicwrites==1.4.1 | ||
types-python-dateutil==2.8.9 | ||
types-PyYAML==6.0.0 | ||
types-requests==2.25.11 | ||
types-setuptools==57.4.2 | ||
types-six==1.16.2 | ||
types-ujson==4.2.0 | ||
typing-extensions==3.10.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,24 @@ | ||
[tox] | ||
envlist = py36,py37,py38,py39,{py36,py37,py38,py39}-flake8,{py36,py37,py38,py39}-mypy | ||
envlist = py36,py37,py38,py39,{py36,py37,py38,py39}-{flake8,mypy} | ||
skipsdist=True | ||
skip_missing_interpreters = False | ||
skip_missing_interpreters=False | ||
|
||
[testenv] | ||
deps = | ||
-r{toxinidir}/requirements_pytest.txt | ||
-r{toxinidir}/requirements_tests.txt | ||
!flake8-!mypy: -r{toxinidir}/requirements_pytest.txt | ||
!flake8-!mypy: -r{toxinidir}/requirements_tests.txt | ||
flake8: -r{toxinidir}/requirements_flake8.txt | ||
mypy: -r{toxinidir}/requirements_mypy.txt | ||
|
||
commands = pytest --cov=tools --cov-report=term {posargs} | ||
changedir = | ||
mypy: {toxinidir}/.. | ||
|
||
commands = | ||
!flake8-!mypy: pytest --cov=tools --cov-report=term {posargs} | ||
flake8: flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
mypy: mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
passenv = | ||
HYPOTHESIS_PROFILE | ||
PY_COLORS | ||
TASKCLUSTER_ROOT_URL | ||
|
||
[testenv:py36-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py37-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py38-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py39-flake8] | ||
deps = -rrequirements_flake8.txt | ||
commands = flake8 --append-config={toxinidir}/flake8.ini {posargs} | ||
|
||
[testenv:py36-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
[testenv:py37-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
[testenv:py38-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ | ||
|
||
[testenv:py39-mypy] | ||
deps = -rrequirements_mypy.txt | ||
changedir = {toxinidir}/.. | ||
commands = mypy --config-file={toxinidir}/mypy.ini tools/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the most complicated change made here. The original errors were:
The fix seems fine to me, I don't know that it could be simplified other than by silencing some errors.