tff.types.contains_only

Checks if type_signature contains only types that pass predicate.