Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0094e26

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/zeroconf/_dns.py

Copy file name to clipboardExpand all lines: src/zeroconf/_dns.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.