Skip to content

Commit 1062b36

Browse files
committed
minor fix in _build_docstring()
1 parent 39ade70 commit 1062b36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/pyscript/stubs/generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def _name(self, identifier: str, ctx: ast.expr_context | None = None) -> ast.exp
393393

394394
def _build_docstring(self, description: str | None, fields: list[_ServiceField]) -> str | None:
395395
docstring = description.strip() if description else ""
396-
docstring.replace("\n", f"\n{_DOCSTRING_INDENT}")
396+
docstring = docstring.replace("\n", f"\n{_DOCSTRING_INDENT}")
397397
first_arg = True
398398
for field in fields:
399399
if not field.description:

0 commit comments

Comments
 (0)