Skip to content

Commit 4be4048

Browse files
author
zach
committed
wip
1 parent 58f955c commit 4be4048

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

template/plugin/pdk_types.py.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class <%- capitalize(schema.name) %>(extism.Json):
2020
<% if (p.description) { -%>
2121
# <%- formatCommentBlock(p.description, "# ") %>
2222
<% } -%>
23-
<%- p.name %>: <%- p.nullable ? `${toPythonType(p)} = None` : `${toPythonType(p)}` %>
23+
<%- p.name %>: <%- p.nullable ? `Optional[${toPythonType(p)}]` : `${toPythonType(p)}` %>
2424
<% }) %>
2525
<% } %>
2626
<% }); %>

0 commit comments

Comments
 (0)