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

socket.create_connection source_address is optional. #4133

Merged
merged 4 commits into from
May 28, 2020

Conversation

bwelling
Copy link
Contributor

Fixes #4116.

@@ -713,7 +713,7 @@ if sys.version_info >= (3, 7):

def create_connection(address: Tuple[Optional[str], int],
timeout: Optional[float] = ...,
source_address: Tuple[Union[bytearray, bytes, Text], int] = ...) -> socket: ...
source_address: Optional[Tuple[Union[bytearray, bytes, Text], int\] = ...) -> socket: ...
Copy link
Collaborator

Choose a reason for hiding this comment

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

These seems to be an extraneous backslash here.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah sorry, the backslash was probably supposed to be a closing bracket. So this is missing now. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry about that. Should be better now.

@srittau
Copy link
Collaborator

srittau commented May 28, 2020

@bwelling Nearly there. Stubtest fails, because socket.create_connection was on its whitelist: tests/stubtest_whitelists/py3_common.txt. Since your PR fixes this problem, it needs to removed from there.

@srittau
Copy link
Collaborator

srittau commented May 28, 2020

Travis-CI seems to hiccup, but it passed now: https://travis-ci.org/github/python/typeshed/builds/692261015

@srittau srittau merged commit 0bed1d3 into python:master May 28, 2020
vishalkuo pushed a commit to vishalkuo/typeshed that referenced this pull request Jun 26, 2020
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.

socket.create_connection source_address should be optional
3 participants