mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
socket: add all_errors param to create_connection (#7691)
python/cpython#91704
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user