We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 109bbe1 commit ac53adfCopy full SHA for ac53adf
1 file changed
src/zeroconf/_services/browser.py
@@ -166,7 +166,11 @@ def generate_service_query(
166
if not qu_question and zc.question_history.suppresses(question, now, known_answers):
167
log.debug("Asking %s was suppressed by the question history", question)
168
continue
169
- questions_with_known_answers[question] = cast(Set[DNSPointer], known_answers)
+ if TYPE_CHECKING:
170
+ pointer_known_answers = cast(Set[DNSPointer], known_answers)
171
+ else:
172
+ pointer_known_answers = known_answers
173
+ questions_with_known_answers[question] = pointer_known_answers
174
if not qu_question:
175
zc.question_history.add_question_at_time(question, now, known_answers)
176
0 commit comments