From 99b71fb9199c6e67fb4aa964e9a6bf0e1fe56205 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 23 Sep 2021 08:31:25 -0500 Subject: [PATCH] Cleanup typing in zeroconf._protocol.outgoing --- zeroconf/_protocol/outgoing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zeroconf/_protocol/outgoing.py b/zeroconf/_protocol/outgoing.py index 21ff4b640..59c8382e5 100644 --- a/zeroconf/_protocol/outgoing.py +++ b/zeroconf/_protocol/outgoing.py @@ -158,7 +158,7 @@ def add_additional_answer(self, record: DNSRecord) -> None: self.additionals.append(record) def add_question_or_one_cache( - self, cache: 'DNSCache', now: float, name: str, type_: int, class_: int + self, cache: DNSCache, now: float, name: str, type_: int, class_: int ) -> None: """Add a question if it is not already cached.""" cached_entry = cache.get_by_details(name, type_, class_) @@ -168,7 +168,7 @@ def add_question_or_one_cache( self.add_answer_at_time(cached_entry, now) def add_question_or_all_cache( - self, cache: 'DNSCache', now: float, name: str, type_: int, class_: int + self, cache: DNSCache, now: float, name: str, type_: int, class_: int ) -> None: """Add a question if it is not already cached. This is currently only used for IPv6 addresses.