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

chore: reword the remaining by-details docstring flagged by the eleve… · python-zeroconf/python-zeroconf@011e789 · GitHub

Repository navigation

Commit 011e789

Browse files
authored
chore: reword the remaining by-details docstring flagged by the eleventh audit (#1896)
1 parent b7aea22 commit 011e789

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/zeroconf/_cache.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def get_all_by_details(self, name: str, type_: _int, class_: _int) -> list[DNSRe
206206
return [entry for entry in list(records.values()) if type_ == entry.type and class_ == entry.class_]
207207

208208
def get_by_details(self, name: str, type_: _int, class_: _int) -> DNSRecord | None:
209-
"""Gets the first matching entry by details. Returns None if no entries match.
209+
"""Return the first cached record carrying this name, type and class, or None.
210210
211211
Calling this function is not recommended as it will only
212212
return one record even if there are multiple entries.

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL