diff --git a/openapi_python_client/templates/property_templates/union_property.py.jinja b/openapi_python_client/templates/property_templates/union_property.py.jinja index 039709369..4d43fafc0 100644 --- a/openapi_python_client/templates/property_templates/union_property.py.jinja +++ b/openapi_python_client/templates/property_templates/union_property.py.jinja @@ -71,7 +71,6 @@ if isinstance({{ source }}, {{ inner_property.get_instance_type_string() }}): {% set ns.has_if = true %} {% elif not loop.last or ns.contains_properties_without_transform %} elif isinstance({{ source }}, {{ inner_property.get_instance_type_string() }}): - {% set has_first_clause = true %} {% else %} else: {% endif %}