From 8ad6c42e4214fe1c373656386accb5126d6424fa Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 17 Jun 2021 11:20:05 -1000 Subject: [PATCH] Cleanup typing in zeroconf._services.registry --- zeroconf/_services/registry.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zeroconf/_services/registry.py b/zeroconf/_services/registry.py index 8ec34120a..20584b3a6 100644 --- a/zeroconf/_services/registry.py +++ b/zeroconf/_services/registry.py @@ -40,9 +40,9 @@ def __init__( self, ) -> None: """Create the ServiceRegistry class.""" - self._services = {} # type: Dict[str, ServiceInfo] - self.types = {} # type: Dict[str, List] - self.servers = {} # type: Dict[str, List] + self._services: Dict[str, ServiceInfo] = {} + self.types: Dict[str, List] = {} + self.servers: Dict[str, List] = {} self._lock = threading.Lock() # add and remove services thread safe def add(self, info: ServiceInfo) -> None: