We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8f9839 commit 77ca206Copy full SHA for 77ca206
openapi_python_client/templates/model.py.jinja
@@ -16,7 +16,7 @@ from ..types import UNSET, Unset
16
{{ relative }}
17
{% endfor %}
18
19
-{% for lazy_import in model.lazy_imports %}
+{% for lazy_import in model.lazy_imports | sort %}
20
{% if loop.first %}
21
if TYPE_CHECKING:
22
{% endif %}
@@ -173,7 +173,7 @@ return field_dict
173
174
@classmethod
175
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
176
- {% for lazy_import in model.lazy_imports %}
+ {% for lazy_import in model.lazy_imports | sort %}
177
{{ lazy_import }}
178
179
{% if (model.required_properties or model.optional_properties or model.additional_properties) %}
0 commit comments