Skip to content

Fix #3187 : Wrong Signatures in socketserver #3189

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

Merged
merged 3 commits into from
Aug 16, 2019
Merged

Fix #3187 : Wrong Signatures in socketserver #3189

merged 3 commits into from
Aug 16, 2019

Conversation

nielsbuwen
Copy link
Contributor

This fixes #3187 by changing the parameter annotations of the BaseServer, UnixStreamServer and UnixDatagramServer in the socketserver module.

I chose Any for the parameter in the BaseServer, because the documentation lists some more protocols, that accepts different parameters, so a Union[Tuple[str, int], AnyStr] would only work for TCP and Unix sockets.

@srittau srittau merged commit 5638d29 into python:master Aug 16, 2019
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.

Wrong signature for unix domain socket servers
2 participants