We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58f955c commit 4be4048Copy full SHA for 4be4048
1 file changed
template/plugin/pdk_types.py.ejs
@@ -20,7 +20,7 @@ class <%- capitalize(schema.name) %>(extism.Json):
20
<% if (p.description) { -%>
21
# <%- formatCommentBlock(p.description, "# ") %>
22
<% } -%>
23
- <%- p.name %>: <%- p.nullable ? `${toPythonType(p)} = None` : `${toPythonType(p)}` %>
+ <%- p.name %>: <%- p.nullable ? `Optional[${toPythonType(p)}]` : `${toPythonType(p)}` %>
24
<% }) %>
25
<% } %>
26
<% }); %>
0 commit comments