Skip to content

Commit 3dba5ae

Browse files
authored
fix: revert adding typing to DNSRecord.suppressed_by (#1210)
1 parent 07cf846 commit 3dba5ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/zeroconf/_dns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def suppressed_by(self, msg: 'DNSIncoming') -> bool:
180180
return True
181181
return False
182182

183-
def _suppressed_by_answer(self, other: 'DNSRecord') -> bool:
183+
def _suppressed_by_answer(self, other) -> bool: # type: ignore[no-untyped-def]
184184
"""Returns true if another record has same name, type and class,
185185
and if its TTL is at least half of this record's."""
186186
return self == other and other.ttl > (self.ttl / 2)

0 commit comments

Comments
 (0)