Skip to content

Commit

Permalink
Improve return type for socket.getaddrinfo for missing ipv6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
MaicoTimmerman committed Jan 6, 2025
1 parent 9f28171 commit 14ac905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/socket.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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]]]: ...

0 comments on commit 14ac905

Please sign in to comment.