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: