mirror of
https://github.com/graphql-python/graphene.git
synced 2025-05-04 00:13:40 +03:00
remove leading whitespaces in multi-line descriptions for fields
This commit is contained in:
parent
52143473ef
commit
22ae54d75b
|
@ -9,6 +9,7 @@ from .structures import NonNull
|
|||
from .unmountedtype import UnmountedType
|
||||
from .utils import get_type
|
||||
from ..utils.deprecated import warn_deprecation
|
||||
from ..utils.trim_docstring import trim_docstring
|
||||
|
||||
base_type = type
|
||||
|
||||
|
@ -108,7 +109,7 @@ class Field(MountedType):
|
|||
resolver = partial(source_resolver, source)
|
||||
self.resolver = resolver
|
||||
self.deprecation_reason = deprecation_reason
|
||||
self.description = description
|
||||
self.description = trim_docstring(description)
|
||||
self.default_value = default_value
|
||||
|
||||
@property
|
||||
|
|
Loading…
Reference in New Issue
Block a user