Skip to content

Commit f457b51

Browse files
committed
chore: add autoescape to description
1 parent 7781166 commit f457b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/python/package/services/service.py.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class {{ service.name | caseUcfirst }}(Service):
3030

3131
def {{ method.name | caseSnake }}(self{% if method.parameters.all|length > 0 %}, {% endif %}{% for parameter in method.parameters.all %}{{ parameter.name | escapeKeyword | caseSnake }}: {{ parameter | getPropertyType(method) | raw }}{% if not parameter.required %} = None{% endif %}{% if not loop.last %}, {% endif %}{% endfor %}{% if 'multipart/form-data' in method.consumes %}, on_progress = None{% endif %}) -> Dict[str, Any]:
3232
"""
33-
{{ method.description | replace({"\n": "\n "}) }}
33+
{% autoescape false %}{{ method.description | replace({"\n": "\n "}) }}{% endautoescape %}
3434
{% if method.parameters.all|length > 0 or 'multipart/form-data' in method.consumes %}
3535

3636
Parameters

0 commit comments

Comments
 (0)