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

Add type signature for a WSGI Application to wsgiref #825

Merged
merged 6 commits into from
Jan 13, 2017
Merged

Conversation

ambv
Copy link
Contributor

@ambv ambv commented Jan 12, 2017

Supersedes #725 but includes original commits by @rowillia.

@gvanrossum, this includes all your comments from review on the other pull request. It had to be a new pull request because the original was not done against current master. Once you rebase, all commits are different, it's no longer the same PR. This is why you couldn't simply edit on GitHub.

Roy Williams and others added 4 commits January 11, 2017 22:45
This type is something core to Python and is useful when typing web applications,
but doesn't actually exist in the stdlib anywhere.  I put this in wsgiref, but I am
open to suggestions as for a better place.
@@ -26,7 +26,7 @@ WSGIApplication = Callable[
Dict[str, str],
Union[
Callable[[str, List[Tuple[str, str]]], Callable[[Union[bytes, str]], None]],
Callable[[str, List[Tuple[str, str]], _exc_info], Callable[[Union[bytes, str]], None]]
Callable[[str, List[Tuple[str, str]], _exc_info], Callable[[Union[bytes, str]], None]],
]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There's another one right here ;-)

@gvanrossum
Copy link
Member

Sorry for breaking the CI. Will send a PR with a fix.

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