From 90e959fc9e3ce45a304eadc5b2f08c6ecf5e09cf Mon Sep 17 00:00:00 2001 From: cle-b Date: Sun, 12 Jan 2025 16:56:03 +0100 Subject: [PATCH] fix typing --- hookdns/getaddrinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hookdns/getaddrinfo.py b/hookdns/getaddrinfo.py index 1f514e8..b5303de 100644 --- a/hookdns/getaddrinfo.py +++ b/hookdns/getaddrinfo.py @@ -64,7 +64,7 @@ def _patch_socket_getaddrinfo( socket.SocketKind, int, str, - Tuple[str, int] | Tuple[str, int, int, int], + Union[Tuple[str, int], Tuple[str, int, int, int]], ] ]: new_host = hosts.get(str(host), host) if host else host