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

Cover httptools_impl on mypy #1102

Closed
wants to merge 32 commits into from
Closed

Cover httptools_impl on mypy #1102

wants to merge 32 commits into from

Conversation

Kludex
Copy link
Member

@Kludex Kludex commented Jun 29, 2021

Continuation of #1014 by @jkklapp .

@Kludex Kludex self-assigned this Jun 29, 2021
@Kludex Kludex mentioned this pull request Jul 1, 2021
1 task
WSGIApp = Callable[[Environ, StartResponse], Union[Iterable[bytes], BaseException]]


class WebProtocol(Protocol):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, I'm not sure if we should actually call it WebProtocolProtocol, because the Protocol is from typing. 🤔

@@ -0,0 +1,16 @@
import asyncio
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to move this due to circular import on the WebProtocol. 😢

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

11 hours after doing this, I wonder if this is a good idea. It's a breaking change as we were exposing ServerState on server.py. I can't find a better solution, so suggestions are welcome.

@Kludex Kludex marked this pull request as ready for review July 9, 2021 23:13
@Kludex Kludex requested a review from euri10 July 9, 2021 23:22
@Kludex Kludex changed the title 🚨 Cover httptools_impl on mypy Cover httptools_impl on mypy Jul 30, 2021
@Kludex Kludex closed this Feb 11, 2022
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.

2 participants