Skip to content

Commit 1284d17

Browse files
committed
Fixup: remove recursion guard. It's valid for a deprecated method to call another deprecated method.
1 parent 14c1922 commit 1284d17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pywisetransfer/deprecation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _emit_warning(self):
4040
warnings.warn(self.message, DeprecationWarning, stacklevel=3)
4141

4242
def __call__(self, *args, **kwargs):
43-
if len(args) == 1 and callable(args[0]) and not isinstance(args[0], deprecated):
43+
if len(args) == 1 and callable(args[0]):
4444
return deprecated(args[0], message=self.message).f
4545
return self.f(*args, **kwargs)
4646

0 commit comments

Comments
 (0)