Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 1b656a3

Browse files
committed
Readd sage_wraps in deprecated methods
1 parent 6adf9da commit 1b656a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sage/misc/decorators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
sage_getargspec)
3838
from inspect import ArgSpec
3939

40+
4041
def sage_wraps(wrapped, assigned=WRAPPER_ASSIGNMENTS, updated=WRAPPER_UPDATES):
4142
r"""
4243
Decorator factory which should be used in decorators for making sure that
@@ -397,6 +398,7 @@ def __call__(self, func):
397398
sage: sage_getargspec(f)
398399
ArgSpec(args=['arrow_size'], varargs='args', keywords='kwds', defaults=(2,))
399400
"""
401+
@sage_wraps(func)
400402
def wrapper(func, *args, **kwds):
401403
suboptions = copy(self.options)
402404
suboptions.update(kwds.pop(self.name+"options", {}))
@@ -485,6 +487,7 @@ def __call__(self, func):
485487
() [('__original_opts', {'alpha': 1}), ('alpha', 1), ('rgbcolor', (0, 0, 1))]
486488
487489
"""
490+
@sage_wraps(func)
488491
def wrapper(func, *args, **kwds):
489492
options = copy(wrapper.options)
490493
if self.original_opts:

0 commit comments

Comments
 (0)