(path: FilePath, use_list: bool = True)
Load a msgpack file.

    location (FilePath): The file path.
    use_list (bool): Don't use tuples instead of lists. Can make
        deserialization slower.
    RETURNS (JSONOutputBin): The loaded and deserialized content.
Load a msgpack file.
Load a msgpack file .
def read_msgpack(path: FilePath, use_list: bool = True) -> JSONOutputBin:
    """Load a msgpack file.

    location (FilePath): The file path.
    use_list (bool): Don't use tuples instead of lists. Can make
        deserialization slower.
    RETURNS (JSONOutputBin): The loaded and deserialized content.
    """
    file_path = force_path(path)
    with file_path.open("rb") as f:
        # msgpack-python docs suggest disabling gc before unpacking large messages
        gc.disable()
        msg = msgpack.load(f, raw=False, use_list=use_list)
        gc.enable()
        return msg
def read_msgpack ( path : FilePath , use_list : bool = True ) -> JSONOutputBin : file_path = force_path ( path ) with file_path . open ( "rb" ) as f : # msgpack-python docs suggest disabling gc before unpacking large messages gc . disable ( ) msg = msgpack . load ( f , raw = False , use_list = use_list ) gc . enable ( ) return msg