mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-17 19:15:55 +08:00
method decorator as class tests
This commit is contained in:
@@ -94,6 +94,23 @@ nothing("")[0]
|
|||||||
#? str()
|
#? str()
|
||||||
nothing("")[1]
|
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
|
# not found decorators
|
||||||
# -----------------
|
# -----------------
|
||||||
|
|||||||
Reference in New Issue
Block a user