-
-
Notifications
You must be signed in to change notification settings - Fork 804
Type-annotate uvicorn/config.py #1067
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
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
0db3bc2
Add changes from PR #992
br3ndonland eee7fba
Correct SSL type annotations
br3ndonland b2a1548
Simplify log_config type annotation
br3ndonland 12d323c
Add type annotation for app
br3ndonland b188fd1
Simplify if expression in Config().headers
br3ndonland d31fddd
Allow paths to be used for Config(env_file)
br3ndonland 9c8e70d
Add asyncio Protocol types to class Config kwargs
br3ndonland 14cb546
Improve use of Literal type for ASGI interfaces
br3ndonland 459544d
Add type annotation to Config kwargs in workers.py
br3ndonland c436bba
Add type annotations to test_config.py
br3ndonland 8d2cd6f
Type-annotate constants in uvicorn/config.py
br3ndonland e9e59e9
Correct type annotations in uvicorn/importer.py
br3ndonland a2d9085
Use os.PathLike for paths in uvicorn/config.py
br3ndonland c20fc2b
Use more specific types in test_config.py
br3ndonland 131e4dc
Install missing YAML type stubs for mypy
br3ndonland 0c4830b
Merge branch 'master' of github.com:encode/uvicorn into mypy-config
br3ndonland 6e1c1dc
Add Environ type to test_config.py
br3ndonland 70694b5
Add Literal type aliases for web server config
br3ndonland 0605421
Use suggested casing for Literal type aliases
br3ndonland b66e11b
Restore test_config.py test_app_factory comment
br3ndonland e60ba66
Simplify event loop setup in config.py
br3ndonland 678478c
Merge branch 'master' into mypy-config
euri10 2e67cbf
Remove old type comment after merging master
br3ndonland 8b38633
Assert that certfile is present for SSL context
br3ndonland d93bf88
Restore support for Config(loop='none')
br3ndonland f9f509b
Move WSGI types to uvicorn/_types.py
br3ndonland 2560310
Remove Awaitable from app type annotation
br3ndonland 5d59bcc
Merge branch 'master' of github.com:encode/uvicorn into mypy-config
br3ndonland 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 hidden or 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 |
---|---|---|
|
@@ -16,6 +16,7 @@ pytest | |
pytest-mock | ||
mypy | ||
types-click | ||
types-pyyaml | ||
trustme | ||
cryptography | ||
coverage | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.