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

Skip to content

Commit feaa882

Browse files
committed
Update docstrings of TextPath copy, deepcopy
1 parent ce1ead1 commit feaa882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/textpath.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def _revalidate_path(self):
432432
self._invalid = False
433433

434434
def __deepcopy__(self, memo):
435-
# taken from https://stackoverflow.com/a/15774013
435+
"""Update path and create deep copy."""
436436
self._revalidate_path()
437437
cls = self.__class__
438438
new_instance = cls.__new__(cls)
@@ -444,7 +444,7 @@ def __deepcopy__(self, memo):
444444
deepcopy = __deepcopy__
445445

446446
def __copy__(self):
447-
# taken from https://stackoverflow.com/a/15774013
447+
"""Update path and create shallow copy."""
448448
self._revalidate_path()
449449
cls = self.__class__
450450
new_instance = cls.__new__(cls)

0 commit comments

Comments
 (0)