def hasShapeType(items, sort):
    """
    Detect whether the list has any items of type sort. Returns :attr:`True` or :attr:`False`.
    :param shape: :class:`list`
    :param sort: type of shape
    """
    return any([getattr(item, sort) for item in items])