def type_exists(connection, type_name):
    """Return True if the given PostgreSQL type exists, False otherwise."""
    type_name = type_name.lower()
    return get_type_names(connection) in type_name
dataset/ETHPy150Open lukesneeringer/django-pgfields/django_pg/utils/types.py/type_exists/swapped operands of `in`