Add missing type annotations and fix typing inconsistencies#3152
Open
ChihweiLHBird wants to merge 2 commits into
Open
Add missing type annotations and fix typing inconsistencies#3152ChihweiLHBird wants to merge 2 commits into
ChihweiLHBird wants to merge 2 commits into
Conversation
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3152 +/- ##
=============================================
- Coverage 87.793% 87.730% -0.063%
=============================================
Files 105 105
Lines 8143 8142 -1
Branches 1290 1290
=============================================
- Hits 7149 7143 -6
- Misses 687 692 +5
Partials 307 307 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Zhiwei Liang <zhiwei.liang@zliang.me>
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
parse_forwarded,parse_xforwarded,_compare,AcceptList.match, andparse_credentialsinsanic/headers.pyTYPE_CHECKINGguard forHeaderandConfigimports to avoid circular importsparse_forwardedwhereheaderwas reassigned fromlisttostr(renamed toheader_values)parse_credentialsprefixesparam fromlist | tuple | set | NonetoCollection[str] | None, and remove now-redundantisinstanceruntime check that conflicted with the type annotation_run_shell_command(command: list[str])inscripts/release.py