mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 17:46:57 +03:00
remove leading whitespaces in multi-line descriptions for UnmountedType
This commit is contained in:
parent
22ae54d75b
commit
2feabacf4b
|
@ -1,5 +1,5 @@
|
||||||
from ..utils.orderedtype import OrderedType
|
from ..utils.orderedtype import OrderedType
|
||||||
|
from ..utils.trim_docstring import trim_docstring
|
||||||
|
|
||||||
class UnmountedType(OrderedType):
|
class UnmountedType(OrderedType):
|
||||||
"""
|
"""
|
||||||
|
@ -43,6 +43,8 @@ class UnmountedType(OrderedType):
|
||||||
super(UnmountedType, self).__init__()
|
super(UnmountedType, self).__init__()
|
||||||
self.args = args
|
self.args = args
|
||||||
self.kwargs = kwargs
|
self.kwargs = kwargs
|
||||||
|
if 'description' in self.kwargs:
|
||||||
|
self.kwargs['description'] = trim_docstring(self.kwargs['description'])
|
||||||
|
|
||||||
def get_type(self):
|
def get_type(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user