1
0
forked from VimPlug/jedi

method decorator as class tests

This commit is contained in:
David Halter
2013-08-09 10:58:24 +04:30
parent 5cf39565ee
commit c222cc5a32

View File

@@ -94,6 +94,23 @@ nothing("")[0]
#? str()
nothing("")[1]
@Decorator
def nothing(a,b,c):
return a,b,c
class MethodDecoratorAsClass():
class_var
def func_without_self(arg):
return arg
def func_with_self(self, arg):
return self.class_var
#? int()
MethodDecoratorAsClass().func_without_self(1)
#?
MethodDecoratorAsClass().func_with_self(1)
# -----------------
# not found decorators
# -----------------