mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-29 08:26:53 +08:00
fix problems with class method decorators
This commit is contained in:
@@ -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