From 60c6554c78a8fc9ecfc61f765f035913b13fc332 Mon Sep 17 00:00:00 2001 From: Cody Scott Date: Sat, 7 Feb 2026 06:04:50 -0500 Subject: [PATCH] Match getaddrinfo() port types in create_connection() Inside create_connection() port is passed to getaddrinfo() so the types should match. --- stdlib/socket.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/socket.pyi b/stdlib/socket.pyi index 36a335e13d02..a55273a8772c 100644 --- a/stdlib/socket.pyi +++ b/stdlib/socket.pyi @@ -1427,7 +1427,7 @@ def getfqdn(name: str = "") -> str: ... if sys.version_info >= (3, 11): def create_connection( - address: tuple[str | None, int], + address: tuple[str | None, bytes | str | int | None], timeout: float | None = ..., source_address: _Address | None = None, *,