We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14c1922 commit 1284d17Copy full SHA for 1284d17
pywisetransfer/deprecation.py
@@ -40,7 +40,7 @@ def _emit_warning(self):
40
warnings.warn(self.message, DeprecationWarning, stacklevel=3)
41
42
def __call__(self, *args, **kwargs):
43
- if len(args) == 1 and callable(args[0]) and not isinstance(args[0], deprecated):
+ if len(args) == 1 and callable(args[0]):
44
return deprecated(args[0], message=self.message).f
45
return self.f(*args, **kwargs)
46
0 commit comments