-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Conversation
stdlib/2and3/socket.pyi
Outdated
@@ -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: ... |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. :)
There was a problem hiding this comment.
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.
@bwelling Nearly there. Stubtest fails, because |
Travis-CI seems to hiccup, but it passed now: https://travis-ci.org/github/python/typeshed/builds/692261015 |
Fixes #4116.