from typing import Union
from pathlib import Path
from typing import Any
import pickle


def read_pickle(fname: Union[str, Path]) -> Any:
    """Read the given file using Pickle.

    Parameters
    ----------
    fname : str
        the file name.

    Returns
    -------
    content : Any
        the object returned by pickle.
    """
    with open(fname, 'rb') as f:
        content = pickle.load(f)

    return content