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

Wrap run()'s "protocol" type annotation in Optional[] #1869

Merged
merged 1 commit into from
Jun 11, 2020
Merged

Wrap run()'s "protocol" type annotation in Optional[] #1869

merged 1 commit into from
Jun 11, 2020

Conversation

linusg
Copy link
Contributor

@linusg linusg commented Jun 8, 2020

As the default is None and the function will determine a sane value in that case, the correct annotation is "Optional[Type[Protocol]]".

As the default is None and the function will determine a sane value
in that case, the correct annotation is "Optional[Type[Protocol]]".
@codecov
Copy link

codecov bot commented Jun 8, 2020

Codecov Report

Merging #1869 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1869   +/-   ##
=======================================
  Coverage   94.81%   94.81%           
=======================================
  Files          24       24           
  Lines        2314     2314           
  Branches      422      422           
=======================================
  Hits         2194     2194           
  Misses         75       75           
  Partials       45       45           
Impacted Files Coverage Δ
sanic/app.py 93.02% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 496e87e...587efb8. Read the comment docs.

@yunstanford yunstanford merged commit bedf68a into sanic-org:master Jun 11, 2020
@linusg linusg deleted the fix-run-type-annotation branch June 11, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants