Skip to content

Commit 6aa406b

Browse files
Add new line before field description
1 parent 07f42ce commit 6aa406b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_federation/service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ def add_entity_fields_decorators(entity, schema: Schema, string_schema: str) ->
8383
decorator_value = getattr(f, decorator, None)
8484
if decorator_value:
8585
str_field += f" {decorator_resolver(schema, decorator_value)}"
86+
if str_fields and str_field.lstrip().startswith("\"\"\""):
87+
str_field = f"\n{str_field}"
8688
str_fields.append(str_field)
8789
str_fields_annotated = "\n".join(str_fields)
8890
# Replace the original field declaration by the annotated one

0 commit comments

Comments
 (0)