def with_indent(self, indent=0):
        """
        Substitute in the docstring of a function with indented :attr:`params`

        Parameters
        ----------
        indent: int
            The number of spaces that the substitution should be indented

        Returns
        -------
        function
            Wrapper that takes a function as input and substitutes it's
            ``__doc__`` with the indented versions of :attr:`params`

        See Also
        --------
        with_indents, dedent"""
        def replace(func):
            doc = func.__doc__ and self.with_indents(
                func.__doc__, indent=indent, stacklevel=4)
            return self._set_object_doc(func, doc)
        return replace
def with_indent ( self , indent = 0 ) : def replace ( func ) : doc = func . __doc__ and self . with_indents ( func . __doc__ , indent = indent , stacklevel = 4 ) return self . _set_object_doc ( func , doc ) return replace
Substitute in the docstring of a function with indented :attr:`params`

        Parameters
        ----------
        indent: int
            The number of spaces that the substitution should be indented

        Returns
        -------
        function
            Wrapper that takes a function as input and substitutes it's
            ``__doc__`` with the indented versions of :attr:`params`

        See Also
        --------
        with_indents, dedent