Skip to content

Commit 45b816e

Browse files
--amend
1 parent 10588f1 commit 45b816e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/templates/property_templates/union_property.py.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ elif {{ source }} is None:
6868
{% endif %}
6969
{% set has_first_clause = false %}
7070
{% if loop.first and property.required and not property.nullable %}{# No if UNSET or if None statement before this #}
71-
{% set has_first_clause = true %}
7271
if isinstance({{ source }}, {{ inner_property.get_instance_type_string() }}):
72+
{% set has_first_clause = true %}
7373
{% elif not loop.last or ns.contains_properties_without_transform %}
7474
{% if not has_first_clause %}if{% else %}elif{% endif %} isinstance({{ source }}, {{ inner_property.get_instance_type_string() }}):
7575
{% set has_first_clause = true %}

0 commit comments

Comments
 (0)