src/pybel/io/gpickle.py
def from_pickle(path: Union[str, BinaryIO], check_version: bool = True) -> BELGraph:
    """Read a graph from a pickle file.

    :param path: File or filename to read. Filenames ending in .gz or .bz2 will be uncompressed.
    :param bool check_version: Checks if the graph was produced by this version of PyBEL
    """
    graph = pickle.load(path)

    raise_for_not_bel(graph)
    if check_version:
        raise_for_old_graph(graph)

    return graph
Read a graph from a pickle file.

    :param path: File or filename to read. Filenames ending in .gz or .bz2 will be uncompressed.
    :param bool check_version: Checks if the graph was produced by this version of PyBEL
    
Read a graph from a pickle file.
Read a graph from a pickle file .
def from_pickle(path: Union[str, BinaryIO], check_version: bool = True) -> BELGraph:
    graph = pickle.load(path)
    raise_for_not_bel(graph)
    if check_version:
        raise_for_old_graph(graph)
    return graph
def from_pickle ( path : Union [ str , BinaryIO ] , check_version : bool = True ) -> BELGraph : graph = pickle . load ( path ) raise_for_not_bel ( graph ) if check_version : raise_for_old_graph ( graph ) return graph
Read a graph from a pickle file.
Read a graph from a pickle file .
"""Read a graph from a pickle file.

    :param path: File or filename to read. Filenames ending in .gz or .bz2 will be uncompressed.
    :param bool check_version: Checks if the graph was produced by this version of PyBEL
    """
path
Union[str, BinaryIO]
File or filename to read. Filenames ending in .gz or .bz2 will be uncompressed.
File or filename to read . Filenames ending in . gz or . bz2 will be uncompressed .
check_version
bool
Checks if the graph was produced by this version of PyBEL
Checks if the graph was produced by this version of PyBEL