def build_annotation_dict_all_filter(annotations: Mapping[str, Iterable[str]]) -> EdgePredicate:
    """Build an edge predicate for edges whose annotations are super-dictionaries of the given dictionary.

    If no annotations are given, will always evaluate to true.

    :param annotations: The annotation query dict to match
    """
    if not annotations:
        return keep_edge_permissive

    @edge_predicate
    def annotation_dict_all_filter(edge_data: EdgeData) -> bool:
        """Check if the all of the annotations in the enclosed query match."""
        return _annotation_dict_all_filter(edge_data, query=annotations)

    return annotation_dict_all_filter
def build_annotation_dict_all_filter ( annotations : Mapping [ str , Iterable [ str ] ] ) -> EdgePredicate : if not annotations : return keep_edge_permissive @ edge_predicate def annotation_dict_all_filter ( edge_data : EdgeData ) -> bool : return _annotation_dict_all_filter ( edge_data , query = annotations ) return annotation_dict_all_filter
Build an edge predicate for edges whose annotations are super-dictionaries of the given dictionary.

    If no annotations are given, will always evaluate to true.

    :param annotations: The annotation query dict to match