Skip to content

Commit

Permalink
fix: remove typing on reset_ttl for cython compat (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Aug 4, 2023
1 parent 99a6f98 commit 0094e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeroconf/_dns.py
Expand Up @@ -207,7 +207,7 @@ def is_recent(self, now: _float) -> bool:
"""Returns true if the record more than one quarter of its TTL remaining."""
return self.created + (_RECENT_TIME_MS * self.ttl) > now

def reset_ttl(self, other: 'DNSRecord') -> None:
def reset_ttl(self, other) -> None: # type: ignore[no-untyped-def]
"""Sets this record's TTL and created time to that of
another record."""
self.set_created_ttl(other.created, other.ttl)
Expand Down

0 comments on commit 0094e26

Please sign in to comment.