def _pango_attr_list_types(attributes):
    """Returns the types of all attributes in the given Pango.AttrList."""
    # Pango.AttrList does not appear to have any normal ways to access its
    # contents, so this is a bit of a hack.
    types = []
    attributes.filter(lambda attribute: types.append(attribute.klass.type))
    return types