Skip to content

Commit 136d986

Browse files
authored
Merge pull request #13387 from anntzer/docstring
Fix regression in docstring.dedent_interpd.
2 parents 3040b90 + 8b9bb2c commit 136d986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/docstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def do_copy(target):
112112

113113
def dedent_interpd(func):
114114
"""Dedent *func*'s docstring, then interpolate it with ``interpd``."""
115-
func.__doc__ = inspect.getdoc(func.__doc__)
115+
func.__doc__ = inspect.getdoc(func)
116116
return interpd(func)
117117

118118

0 commit comments

Comments
 (0)