def _contains_instance_of(seq, cl):
    """
    :type seq: iterable
    :type cl: type

    :rtype: bool
    """
    for e in seq:
        if isinstance(e, cl):
            return True
    return False

    :type seq: iterable
    :type cl: type

    :rtype: bool
    
stackoverflow/venv/lib/python3.6/site-packages/service_identity/_common.py