Skip to content

Commit 0865253

Browse files
authored
Copy pydantic model docstring to graphene model
1 parent 617089d commit 0865253

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graphene_pydantic/objecttype.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ def __init_subclass_with_meta__(
8686
if not registry:
8787
registry = get_global_registry(PydanticObjectType)
8888

89+
cls.__doc__ = model.__doc__
90+
8991
pydantic_fields = yank_fields_from_attrs(
9092
construct_fields(
9193
obj_type=cls,

0 commit comments

Comments
 (0)