import pickle


def unpickle(filename: str) -> object:
    """
    Unpickles a file and returns the object
    """
    pickleIn = open(filename, "rb")
    pickledObject = pickle.load(pickleIn)
    pickleIn.close()
    return pickledObject