Skip to content

Commit 8fbf2d6

Browse files
authored
Merge pull request #80 from so1n/79-generating-proto-classes-with-a-single-comment-fails
Fix, fix issue 79
2 parents eb5a818 + 28d5315 commit 8fbf2d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

protobuf_to_pydantic/plugin/field_desc_proto_to_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ def _message(
771771
]
772772
)
773773
if not any([class_head_content, class_field_content]):
774-
content += " " * (indent + self.code_indent) + "pass\n"
774+
content += "\n" + " " * (indent + self.code_indent) + "pass\n"
775775
use_model_cache[class_name] = content
776776
return content
777777

0 commit comments

Comments
 (0)