socket.create_connection allows host to be None (#2136)

This commit is contained in:
Dmitry Figol
2018-05-17 09:45:59 -04:00
committed by Jelle Zijlstra
parent 97d9f2eb2c
commit f7f00c52af

View File

@@ -576,7 +576,7 @@ class socket:
# ----- functions -----
def create_connection(address: Tuple[str, int],
def create_connection(address: Tuple[Optional[str], int],
timeout: float = ...,
source_address: Tuple[str, int] = ...) -> socket: ...