src/pybel/io/gpickle.py
def from_bytes_gz(bytes_graph: bytes) -> BELGraph:
    """Read a graph from gzipped bytes (the result of pickling the graph).

    :param bytes_graph: File or filename to write
    """
    with gzip.GzipFile(fileobj=BytesIO(bytes_graph), mode='rb') as file:
        return pickle.load(file)
Read a graph from gzipped bytes (the result of pickling the graph).

    :param bytes_graph: File or filename to write
    
Read a graph from gzipped bytes (the result of pickling the graph).
Read a graph from gzipped bytes ( the result of pickling the graph ) .
def from_bytes_gz(bytes_graph: bytes) -> BELGraph:
    with gzip.GzipFile(fileobj=BytesIO(bytes_graph), mode='rb') as file:
        return pickle.load(file)
def from_bytes_gz ( bytes_graph : bytes ) -> BELGraph : with gzip . GzipFile ( fileobj = BytesIO ( bytes_graph ) , mode = 'rb' ) as file : return pickle . load ( file )
Read a graph from gzipped bytes (the result of pickling the graph).
Read a graph from gzipped bytes ( the result of pickling the graph ) .
"""Read a graph from gzipped bytes (the result of pickling the graph).

    :param bytes_graph: File or filename to write
    """
bytes_graph
bytes
File or filename to write
File or filename to write