Files
zenml/venv/lib/python3.9/site-packages/graphene/utils/trim_docstring.py
Christian Mantha 2ca0b9ef7c star
2026-03-02 19:10:52 -05:00

10 lines
297 B
Python

import inspect
def trim_docstring(docstring):
# Cleans up whitespaces from an indented docstring
#
# See https://www.python.org/dev/peps/pep-0257/
# and https://docs.python.org/2/library/inspect.html#inspect.cleandoc
return inspect.cleandoc(docstring) if docstring else None