src/pybel_tools/summary/error_summary.py
def get_undefined_annotations(graph: BELGraph) -> Set[str]:
    """Get all annotations that aren't actually defined.
    
    :return: The set of all undefined annotations
    """
    return {
        exc.annotation
        for _, exc, _ in graph.warnings
        if isinstance(exc, UndefinedAnnotationWarning)
    }
def get_undefined_annotations(graph: BELGraph) -> Set[str]:
    """Get all annotations that aren't actually defined.
    
    :return: The set of all undefined annotations
    """
    return {
        exc.annotation
        for _, exc, _ in graph.warnings
        if isinstance(exc, UndefinedAnnotationWarning)
    }
def get_undefined_annotations ( graph : BELGraph ) -> Set [ str ] : return { exc . annotation for _ , exc , _ in graph . warnings if isinstance ( exc , UndefinedAnnotationWarning ) }
Get all annotations that aren't actually defined.
    
    :return: The set of all undefined annotations
Get all annotations that aren t actually defined . : return : The set of all undefined annotations