From 5dac601407e31a67a948dc53adc835676c33a907 Mon Sep 17 00:00:00 2001 From: Robbe Sneyders Date: Mon, 8 Jan 2024 17:11:00 +0100 Subject: [PATCH] Fix readme generation --- scripts/component_readme/readme_template.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/component_readme/readme_template.md b/scripts/component_readme/readme_template.md index 460f2feb8..5907bc8a6 100644 --- a/scripts/component_readme/readme_template.md +++ b/scripts/component_readme/readme_template.md @@ -64,7 +64,7 @@ The component takes the following arguments to alter its behavior: | argument | type | description | default | | -------- | ---- | ----------- | ------- | {% for argument in arguments %} -| {{ argument.name }} | {{ argument.type }} | {{ argument.description.replace("\n", "") }} | {{ argument.default or "/" }} | +| {{ argument.name }} | {{ argument.type.__name__ }} | {{ argument.description.replace("\n", "") }} | {{ argument.default or "/" }} | {% endfor %} {% else %} This component takes no arguments. @@ -101,7 +101,7 @@ dataset.write( {% if argument.default %} # "{{ argument.name }}": {{ '\"' + argument.default + '\"' if argument.default is string else argument.default }}, {% else %} - # "{{ argument.name }}": {{ (argument.type|eval)() }}, + # "{{ argument.name }}": {{ argument.type() }}, {% endif %} {% endfor %} },