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 713a24d commit 0841f83Copy full SHA for 0841f83
src/bo4e/utils/__init__.py
@@ -31,6 +31,7 @@ def add_comments_to_description(cls: type[T]) -> type[T]:
31
32
for field_name, field_info in cls.model_fields.items():
33
if field_info.description is not None:
34
+ field_info.description = field_info.description.strip()
35
continue
36
# search for (single line) comments above the field
37
match = re.search(regex_comment_above.format(field_name=field_name), fields_code)
0 commit comments