From 9d60fd29b19d3bc51c1831786bc5b2ad1d467086 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 17 Jun 2021 12:00:11 -1000 Subject: [PATCH] Cleanup typing in zeroconf._utils.net --- zeroconf/_utils/net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroconf/_utils/net.py b/zeroconf/_utils/net.py index 8d1b60bc6..19500e0f7 100644 --- a/zeroconf/_utils/net.py +++ b/zeroconf/_utils/net.py @@ -135,7 +135,7 @@ def normalize_interface_choice( :param ip_address: IP version to use (ignored if `choice` is a list). :returns: List of IP addresses (for IPv4) and indexes (for IPv6). """ - result = [] # type: List[Union[str, Tuple[Tuple[str, int, int], int]]] + result: List[Union[str, Tuple[Tuple[str, int, int], int]]] = [] if choice is InterfaceChoice.Default: if ip_version != IPVersion.V4Only: # IPv6 multicast uses interface 0 to mean the default