-
-
Notifications
You must be signed in to change notification settings - Fork 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
Enforce strict mypy checks #5370
Merged
Merged
Changes from 36 commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
fd8317e
Run mypy --strict
derlih 0047ccd
fix resolver
derlih 9d8f691
fix helpers
derlih 6dff8bf
fix payload
derlih ef0ecaf
fix http_websocket
derlih 7f57094
fix http_parser.py
derlih 1b3e577
fix worker.py
derlih 4772e9f
fix web_urldispatcher.py
derlih 04d63b2
typing.Awaitable (deprecated since 3.9) -> collections.abc.Awaitable
derlih 6727aef
fix web_response.py
derlih 312a85f
fix web_app.py
derlih 4097515
Fix multipart.py
derlih 8358217
Fix web_request.py + additions to http_parser.py
derlih ba2b92b
Add some typing to helpers.py
derlih 4828a5e
fix connector.py
derlih 0e77857
fix client_ws.py
derlih 2ef66e6
fix web_ws.py
derlih 6c7b91d
fix web_protocol.py
derlih cf137b9
fix test_utils.py
derlih b874ce0
fix pytest_plugin.py
derlih fe6606d
fix helpers.py run
derlih 0491354
Revert "typing.Awaitable (deprecated since 3.9) -> collections.abc.Aw…
derlih 918efc1
run type fixes
derlih f104311
add chages file
derlih 91747a3
Run mypy --strict only for aiohttp
derlih 7bd6271
Move strict option into mypy config
derlih 403ebb6
add pytest to lint.txt
derlih dc73132
Simplify config
derlih 78dc696
move strict flag to mypy.ini
derlih d81f5b2
changes file
derlih 11e7f5d
mypy shows error code
derlih 60447aa
add asynctest to mypy ignore imports
derlih d559a39
mypy specific ignores
derlih ac6c7f4
fix test_client_session.py
derlih 52db00f
fix web_ws.py
derlih 7a8b193
fix WebSocketResponse._compress typing
derlih 68905c1
restore client_reqrep body logic
derlih 9bcca14
Revert "restore client_reqrep body logic"
derlih 34a46c9
Revert "fix WebSocketResponse._compress typing"
derlih 246990d
Revert "fix web_ws.py"
derlih 1cfac3c
Revert "fix test_client_session.py"
derlih e465642
Revert "mypy specific ignores"
derlih eaee5aa
Specify mypy errors for ignore only
derlih 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
[mypy] | ||
warn_unused_configs = True | ||
strict = True | ||
|
||
[mypy-aiodns] | ||
ignore_missing_imports = True | ||
|
||
[mypy-brotli] | ||
ignore_missing_imports = True | ||
|
||
[mypy-gunicorn.*] | ||
ignore_missing_imports = True | ||
|
||
[mypy-uvloop] | ||
ignore_missing_imports = True | ||
|
||
[mypy-cchardet] | ||
ignore_missing_imports = True | ||
|
||
[mypy-tokio] | ||
ignore_missing_imports = True | ||
|
||
[mypy-asynctest] | ||
ignore_missing_imports = True |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Use ``mypy --strict`` |
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
Oops, something went wrong.
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 looks like a logic change unrelated to typing
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.
I've restored the logic