socket: add all_errors param to create_connection (#7691)

python/cpython#91704
This commit is contained in:
Jelle Zijlstra
2022-04-25 21:10:29 -07:00
committed by GitHub
parent c8a978f756
commit 85a6f0ffe9

View File

@@ -605,11 +605,22 @@ class SocketIO(RawIOBase):
def mode(self) -> Literal["rb", "wb", "rwb"]: ...
def getfqdn(name: str = ...) -> str: ...
def create_connection(
address: tuple[str | None, int],
timeout: float | None = ..., # noqa: F811
source_address: tuple[bytearray | bytes | str, int] | None = ...,
) -> socket: ...
if sys.version_info >= (3, 11):
def create_connection(
address: tuple[str | None, int],
timeout: float | None = ..., # noqa: F811
source_address: tuple[bytearray | bytes | str, int] | None = ...,
*,
all_errors: bool = ...,
) -> socket: ...
else:
def create_connection(
address: tuple[str | None, int],
timeout: float | None = ..., # noqa: F811
source_address: tuple[bytearray | bytes | str, int] | None = ...,
) -> socket: ...
if sys.version_info >= (3, 8):
def has_dualstack_ipv6() -> bool: ...