Skip to content

Commit 7da9abf

Browse files
committed
use get_doc for description
1 parent a76f9a0 commit 7da9abf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drf_spectacular/plumbing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1139,7 +1139,7 @@ def _resolve_typeddict(hint):
11391139
k: resolve_type_hint(v) for k, v in get_type_hints(hint).items()
11401140
},
11411141
required=required,
1142-
description=inspect.cleandoc(hint.__doc__ or ""),
1142+
description=get_doc(hint.__doc__),
11431143
)
11441144

11451145

0 commit comments

Comments
 (0)