def has_wildcard(workflow_id_or_label):
    'Check if string or any element in list/tuple has\n    a wildcard (? or *).\n\n    Args:\n        workflow_id_or_label:\n            Workflow ID (str) or label (str).\n            Or array (list, tuple) of them.\n    '
    if (workflow_id_or_label is None):
        return False
    if isinstance(workflow_id_or_label, (list, tuple)):
        for val in workflow_id_or_label:
            if has_wildcard(val):
                return True
        return False
    else:
        return (('?' in workflow_id_or_label) or ('*' in workflow_id_or_label))
Check if string or any element in list/tuple has
a wildcard (? or *).

Args:
    workflow_id_or_label:
        Workflow ID (str) or label (str).
        Or array (list, tuple) of them.
def has_wildcard(workflow_id_or_label):
    'Check if string or any element in list/tuple has\n    a wildcard (? or *).\n\n    Args:\n        workflow_id_or_label:\n            Workflow ID (str) or label (str).\n            Or array (list, tuple) of them.\n    '
    if (workflow_id_or_label is None):
        return False
    if isinstance(workflow_id_or_label, (list, tuple)):
        for val in workflow_id_or_label:
            if has_wildcard(val):
                return True
        return False
    else:
        return (('?' in workflow_id_or_label) or ('*' in workflow_id_or_label))