fix double strip
This commit is contained in:
parent
fc00916051
commit
8a22ed347c
@ -263,7 +263,7 @@ def _generate_docstrings(clzs: list[Type[Component]], props: list[str]) -> str:
|
|||||||
# Get comments for prop
|
# Get comments for prop
|
||||||
if line.strip().startswith("#"):
|
if line.strip().startswith("#"):
|
||||||
# Remove noqa from the comments.
|
# Remove noqa from the comments.
|
||||||
line = line.partition(" # noqa")[0].strip()
|
line = line.partition(" # noqa")[0]
|
||||||
comments.append(line)
|
comments.append(line)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user