From ca45cbb2c93afbc1b8d4e69d8e19cb7023534265 Mon Sep 17 00:00:00 2001 From: Luis Saavedra Date: Thu, 27 Jan 2022 18:51:12 -0300 Subject: [PATCH] remove bad indent space generate with jinja comments --- .../templates/property_templates/date_property.py.jinja | 2 +- .../templates/property_templates/datetime_property.py.jinja | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi_python_client/templates/property_templates/date_property.py.jinja b/openapi_python_client/templates/property_templates/date_property.py.jinja index c5275bf26..f0dd00ba9 100644 --- a/openapi_python_client/templates/property_templates/date_property.py.jinja +++ b/openapi_python_client/templates/property_templates/date_property.py.jinja @@ -12,7 +12,7 @@ isoparse({{ source }}).date() {% macro transform(property, source, destination, declare_type=True, multipart=False) %} {% set transformed = source + ".isoformat()" %} -{% if multipart %} {# Multipart data must be bytes, not str #} +{% if multipart %}{# Multipart data must be bytes, not str #} {% set transformed = transformed + ".encode()" %} {% endif %} {% if property.required %} diff --git a/openapi_python_client/templates/property_templates/datetime_property.py.jinja b/openapi_python_client/templates/property_templates/datetime_property.py.jinja index dd70c0c6f..6653a6134 100644 --- a/openapi_python_client/templates/property_templates/datetime_property.py.jinja +++ b/openapi_python_client/templates/property_templates/datetime_property.py.jinja @@ -12,7 +12,7 @@ isoparse({{ source }}) {% macro transform(property, source, destination, declare_type=True, multipart=False) %} {% set transformed = source + ".isoformat()" %} -{% if multipart %} {# Multipart data must be bytes, not str #} +{% if multipart %}{# Multipart data must be bytes, not str #} {% set transformed = transformed + ".encode()" %} {% endif %} {% if property.required %}