MAINT: move 'inherit_docstring_from' to misc.doccer, and make it template-based.