Skip to content

Commit 0094e26

Browse files
authored
fix: remove typing on reset_ttl for cython compat (#1213)
1 parent 99a6f98 commit 0094e26

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
@@ -207,7 +207,7 @@ def is_recent(self, now: _float) -> bool:
207207
"""Returns true if the record more than one quarter of its TTL remaining."""
208208
return self.created + (_RECENT_TIME_MS * self.ttl) > now
209209

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

0 commit comments

Comments
 (0)