|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
|
|
|
from contextlib import ContextDecorator
|
|
|
-from functools import WRAPPER_ASSIGNMENTS, update_wrapper, wraps
|
|
|
+from functools import WRAPPER_ASSIGNMENTS, partial, update_wrapper, wraps
|
|
|
|
|
|
|
|
|
class classonlymethod(classmethod):
|
|
@@ -36,8 +36,10 @@ def _multi_decorate(decorators, method):
|
|
|
|
|
|
def _wrapper(self, *args, **kwargs):
|
|
|
|
|
|
-
|
|
|
- bound_method = method.__get__(self, type(self))
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ bound_method = partial(method.__get__(self, type(self)))
|
|
|
for dec in decorators:
|
|
|
bound_method = dec(bound_method)
|
|
|
return bound_method(*args, **kwargs)
|