We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 178704d commit 7814b32Copy full SHA for 7814b32
.generator/src/generator/formatter.py
@@ -75,7 +75,7 @@ def is_primitive(schema):
75
76
77
def block_comment(comment, prefix="#", first_line=True):
78
- lines = comment.split("\n")
+ lines = (comment or "").split("\n")
79
start = "" if first_line else lines[0] + "\n"
80
return (start + "\n".join(f"{prefix} {line}".rstrip() for line in lines[(0 if first_line else 1) :])).rstrip()
81
0 commit comments