Skip to content

Commit 60c6554

Browse files
committed
Match getaddrinfo() port types in create_connection()
Inside create_connection() port is passed to getaddrinfo() so the types should match.
1 parent c045882 commit 60c6554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/socket.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ def getfqdn(name: str = "") -> str: ...
14271427

14281428
if sys.version_info >= (3, 11):
14291429
def create_connection(
1430-
address: tuple[str | None, int],
1430+
address: tuple[str | None, bytes | str | int | None],
14311431
timeout: float | None = ...,
14321432
source_address: _Address | None = None,
14331433
*,

0 commit comments

Comments
 (0)