Skip to content

Commit c404d1f

Browse files
authored
Merge pull request #17587 from QuLogic/fix-docs
Add a docstring to toolkit's BezierPath.__init__.
2 parents ecdfa65 + 08b62e5 commit c404d1f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

lib/matplotlib/cbook/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def finalize(wrapper, new_doc):
180180
obj.__doc__ = new_doc
181181
except AttributeError: # Can't set on some extension objects.
182182
pass
183-
obj.__init__ = wrapper
183+
obj.__init__ = functools.wraps(obj.__init__)(wrapper)
184184
return obj
185185

186186
elif isinstance(obj, property):

lib/mpl_toolkits/axisartist/axis_artist.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,14 @@
108108
class BezierPath(Line2D):
109109

110110
def __init__(self, path, *args, **kwargs):
111+
"""
112+
Parameters
113+
----------
114+
path : `~.path.Path`
115+
The path to draw.
116+
**kwargs
117+
All remaining keyword arguments are passed to `.Line2D`.
118+
"""
111119
Line2D.__init__(self, [], [], *args, **kwargs)
112120
self._path = path
113121
self._invalid = False

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy