FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

chore: fresh docstrings for the block audit sites (#1857) · python-zeroconf/python-zeroconf@5f6b926 · GitHub

Repository navigation

Commit 5f6b926

Browse files
authored
chore: fresh docstrings for the block audit sites (#1857)
1 parent 7d859ab commit 5f6b926

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/zeroconf/_cache.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,7 @@ def async_mark_unique_records_older_than_1s_to_expire(
329329
self._async_set_created_ttl(record, now, 1)
330330

331331
def _async_set_created_ttl(self, record: DNSRecord, now: _float, ttl: _int) -> None:
332+
"""Stamp a record with a new ttl and creation moment, then cache it."""
332333
# It would be better if we made a copy instead of mutating the record
333334
# in place, but records currently don't have a copy method.
334335
record._set_created_ttl(now, ttl)

‎src/zeroconf/_protocol/incoming.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def is_response(self) -> bool:
148148
return (self.flags & _FLAGS_QR_MASK) == _FLAGS_QR_RESPONSE
149149

150150
def has_qu_question(self) -> bool:
151+
"""True when at least one question requests a unicast response."""
151152
return self._has_qu_question
152153

153154
@property

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL