mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
socket.create_connection allows host to be None (#2136)
This commit is contained in:
committed by
Jelle Zijlstra
parent
97d9f2eb2c
commit
f7f00c52af
@@ -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: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user