Skip to content

Commit 7cb3eef

Browse files
Update _socket.pyi to include tuple[int, bytes] address format (#13596)
1 parent 0b6e42c commit 7cb3eef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/_socket.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,12 +812,12 @@ def getaddrinfo(
812812
type: int = ...,
813813
proto: int = ...,
814814
flags: int = ...,
815-
) -> list[tuple[int, int, int, str, tuple[str, int] | tuple[str, int, int, int]]]: ...
815+
) -> list[tuple[int, int, int, str, tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes]]]: ...
816816
def gethostbyname(hostname: str, /) -> str: ...
817817
def gethostbyname_ex(hostname: str, /) -> tuple[str, list[str], list[str]]: ...
818818
def gethostname() -> str: ...
819819
def gethostbyaddr(ip_address: str, /) -> tuple[str, list[str], list[str]]: ...
820-
def getnameinfo(sockaddr: tuple[str, int] | tuple[str, int, int, int], flags: int, /) -> tuple[str, str]: ...
820+
def getnameinfo(sockaddr: tuple[str, int] | tuple[str, int, int, int] | tuple[int, bytes], flags: int, /) -> tuple[str, str]: ...
821821
def getprotobyname(protocolname: str, /) -> int: ...
822822
def getservbyname(servicename: str, protocolname: str = ..., /) -> int: ...
823823
def getservbyport(port: int, protocolname: str = ..., /) -> str: ...

0 commit comments

Comments
 (0)