1
0
forked from VimPlug/jedi

change Execution usage to always use the decorator function

This commit is contained in:
David Halter
2013-08-10 21:40:36 +04:30
parent c35da04820
commit 085bddd6a1
2 changed files with 46 additions and 32 deletions

View File

@@ -149,13 +149,12 @@ JustAClass.a()
class DecoratorWithoutCall():
def __init__(self, func):
self.func = func
def __call__(self):
return self.func()
@DecoratorWithoutCall
def f():
return 1
# cannot be resolved - should be ignored
@DecoratorWithoutCall(None)
def g():
return 1