fix problems with class method decorators
This commit is contained in:
1 parent
c222cc5a32
commit
7548ec7280
2 files changed
+7
-4
No files matched your search
@@ -99,9 +99,12 @@ def nothing(a,b,c):
|
||||
return a,b,c
|
||||
|
||||
class MethodDecoratorAsClass():
|
||||
class_var
|
||||
class_var = 3
|
||||
@Decorator
|
||||
def func_without_self(arg):
|
||||
return arg
|
||||
|
||||
@Decorator
|
||||
def func_with_self(self, arg):
|
||||
return self.class_var
|
||||
|
||||
|
||||
Reference in new issue
Block a user