We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 475a678 commit d9b45dbCopy full SHA for d9b45db
1 file changed
template/plugin/plugin.py.ejs
@@ -16,7 +16,9 @@ from typing import List, Optional # noqa: F401
16
<% } -%>
17
def <%- pythonFunctionName(ex.name) %>(<% if (ex.input) { %>input: <%- toPythonParamType(ex.input) %> <% } %>) <% if (ex.output) {%>-> <%- toPythonParamType(ex.output) %><%}%>:
18
<% if (featureFlags['stub-with-code-samples'] && codeSamples(ex, 'python').length > 0) { -%>
19
- <%- codeSamples(ex, 'python')[0].source %>
+<% for (const line of codeSamples(ex, 'python')[0].source.split("\n")) { -%>
20
+ <%- line %>
21
+<% } -%>
22
<% } else { -%>
23
raise Exception("Unimplemented: <%- ex.name %>")
24
0 commit comments