Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8b9bb2c

Browse files
committed
Fix regression in docstring.dedent_interpd.
See e.g. the docstring of `Axes.__init__`.
1 parent e624d6a commit 8b9bb2c

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)