Skip to content

Commit

Permalink
fix: revert adding typing to DNSRecord.suppressed_by (#1210)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 3, 2023
1 parent 07cf846 commit 3dba5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeroconf/_dns.py
Expand Up @@ -180,7 +180,7 @@ def suppressed_by(self, msg: 'DNSIncoming') -> bool:
return True
return False

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

0 comments on commit 3dba5ae

Please sign in to comment.