load

load(file: str | Path)

Load an object from a compressed file

Wraps pickle.load() with the same conveniences as pb.save().

Parameters:
fileUnion[str, pathlib.Path]

May be a str, a pathlib object or a file object created with open().