Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove leading whitespaces in multi-line descriptions for UnmountedType
  • Loading branch information
firaskafri authored Jan 6, 2023
commit 2feabacf4ba39bda46dd71a408e1d60cfac54acc
6 changes: 4 additions & 2 deletions graphene/types/unmountedtype.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from ..utils.orderedtype import OrderedType

from ..utils.trim_docstring import trim_docstring

class UnmountedType(OrderedType):
"""
Expand Down Expand Up @@ -43,7 +43,9 @@ def __init__(self, *args, **kwargs):
super(UnmountedType, self).__init__()
self.args = args
self.kwargs = kwargs

if 'description' in self.kwargs:
self.kwargs['description'] = trim_docstring(self.kwargs['description'])

def get_type(self):
"""
This function is called when the UnmountedType instance
Expand Down