"""Parsers for various forms of data formats.""" import plistlib from typing import Any def decode_plist(data: bytes) -> Any: # noqa: ANN401 """Decode a plist file.""" plist_header = ( b"" b"" ) if not data.startswith(b" str: """Format a byte as a two character hex string in uppercase.""" return f"{byte:02x}".upper()