From 0a9472be042841cb80582583ff3b5fde377bfc02 Mon Sep 17 00:00:00 2001 From: Jonas Platte Date: Thu, 6 Mar 2025 13:38:46 +0100 Subject: [PATCH] python: Support field-less object types --- python/templates/types/struct_fields.py.jinja | 1 + 1 file changed, 1 insertion(+) diff --git a/python/templates/types/struct_fields.py.jinja b/python/templates/types/struct_fields.py.jinja index 52b76d50f..4c5d8436c 100644 --- a/python/templates/types/struct_fields.py.jinja +++ b/python/templates/types/struct_fields.py.jinja @@ -1,3 +1,4 @@ +{% if type.fields | length == 0 %} pass{% endif -%} {% for field in type.fields %} {%- if field.required and not field.nullable %} {%- if field.name | to_lower_camel_case != field.name %}