fix double strip

This commit is contained in:
Lendemor 2024-12-10 20:41:53 +01:00
parent fc00916051
commit 8a22ed347c
2 changed files with 26 additions and 26 deletions

View File

@ -263,7 +263,7 @@ def _generate_docstrings(clzs: list[Type[Component]], props: list[str]) -> str:
# Get comments for prop
if line.strip().startswith("#"):
# Remove noqa from the comments.
line = line.partition(" # noqa")[0].strip()
line = line.partition(" # noqa")[0]
comments.append(line)
continue