From 263cd5bd16a159a931f3833419e41dd7e6126e62 Mon Sep 17 00:00:00 2001 From: Philip Magyar Date: Wed, 20 Nov 2024 09:12:19 +0100 Subject: [PATCH] fix commit errors --- findmy/reports/reports.py | 2 +- findmy/util/parsers.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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()