fix commit errors

This commit is contained in:
Philip Magyar
2024-11-20 09:12:19 +01:00
parent a4b753287e
commit 263cd5bd16
2 changed files with 3 additions and 2 deletions

View File

@@ -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]

View File

@@ -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()