From 14ac905736fdd599e1912831110337f1a094d9cd Mon Sep 17 00:00:00 2001 From: Maico Timmerman Date: Mon, 6 Jan 2025 13:37:15 +0100 Subject: [PATCH] Improve return type for socket.getaddrinfo for missing ipv6 support Closes #13344 --- stdlib/socket.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/socket.pyi b/stdlib/socket.pyi index ab22cced0bb5..a9c88a3996ac 100644 --- a/stdlib/socket.pyi +++ b/stdlib/socket.pyi @@ -1402,4 +1402,4 @@ def create_server( # the 5th tuple item is an address def getaddrinfo( host: bytes | str | None, port: bytes | str | int | None, family: int = 0, type: int = 0, proto: int = 0, flags: int = 0 -) -> list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int]]]: ... +) -> list[tuple[AddressFamily, SocketKind, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]: ...