diff --git a/findmy/reports/reports.py b/findmy/reports/reports.py index 307db87..14a9f2a 100644 --- a/findmy/reports/reports.py +++ b/findmy/reports/reports.py @@ -124,7 +124,7 @@ class LocationReport(HasHashedPublicKey): @property def confidence(self) -> int: - """Confidence of the location of this report. Int between 1 and 3""" + """Confidence of the location of this report. Int between 1 and 3.""" # If the payload length is 88, the confidence is the 5th byte, otherwise it's the 6th byte if len(self._payload) == 88: return self.payload[4] diff --git a/findmy/util/parsers.py b/findmy/util/parsers.py index b1abb43..fdd7ecb 100644 --- a/findmy/util/parsers.py +++ b/findmy/util/parsers.py @@ -17,5 +17,6 @@ def decode_plist(data: bytes) -> Any: # noqa: ANN401 return plistlib.loads(data) -def format_hex_byte(byte): +def format_hex_byte(byte: int) -> str: + """Format a byte as a two character hex string in uppercase.""" return f"{byte:02x}".upper()