Skip to content
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

Improve and fix some type annotations #2536

Merged
merged 2 commits into from
Sep 13, 2022
Merged

Improve and fix some type annotations #2536

merged 2 commits into from
Sep 13, 2022

Conversation

monosans
Copy link
Contributor

@monosans monosans commented Aug 26, 2022

According to typing.Tuple docs: To specify a variable-length tuple of homogeneous type, use literal ellipsis, e.g. Tuple[int, ...].

All of the cases I fixed involve the use of variable-length tuples.

@monosans monosans requested a review from a team as a code owner August 26, 2022 08:39
@codecov
Copy link

codecov bot commented Aug 26, 2022

Codecov Report

Base: 87.504% // Head: 87.450% // Decreases project coverage by -0.053% ⚠️

Coverage data is based on head (2ebc99f) compared to base (c8df0aa).
Patch coverage: 100.000% of modified lines in pull request are covered.

Additional details and impacted files
@@              Coverage Diff              @@
##              main     #2536       +/-   ##
=============================================
- Coverage   87.504%   87.450%   -0.054%     
=============================================
  Files           69        69               
  Lines         5602      5602               
  Branches       974       974               
=============================================
- Hits          4902      4899        -3     
- Misses         507       509        +2     
- Partials       193       194        +1     
Impacted Files Coverage Δ
sanic/app.py 88.825% <100.000%> (ø)
sanic/server/protocols/http_protocol.py 81.617% <0.000%> (-2.206%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

sanic/app.py Outdated Show resolved Hide resolved
@monosans monosans changed the title Fix variable-length tuple type annotations Improve and fix some type annotations Aug 26, 2022
@monosans monosans requested a review from ahopkins August 26, 2022 14:12
@ahopkins ahopkins merged commit e499940 into sanic-org:main Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🏗 In progress
Development

Successfully merging this pull request may close these issues.

3 participants