8000 fix: cannot be typed until cython3 · python-zeroconf/python-zeroconf@d9923a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9923a2

Browse files
committed
fix: cannot be typed until cython3
1 parent 2c6ae75 commit d9923a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/zeroconf/_dns.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def is_recent(self, now: float_) -> bool:
208208
"""Returns true if the record more than one quarter of its TTL remaining."""
209209
return self.created + (_RECENT_TIME_MS * self.ttl) > now
210210

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

0 commit comments

Comments
 (0)
0