forked from VimPlug/jedi
decorator's that are not found, are now just being ignored / introduced new testing file
This commit is contained in:
@@ -151,6 +151,31 @@ CallClass()()
|
||||
# properties
|
||||
# -----------------
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
class B():
|
||||
@property
|
||||
def r(self):
|
||||
@@ -172,6 +197,8 @@ B().p
|
||||
##? []
|
||||
B().p()
|
||||
|
||||
property2 = property
|
||||
|
||||
# -----------------
|
||||
# class decorators
|
||||
# -----------------
|
||||
|
||||
27
test/completion/decorators.py
Normal file
27
test/completion/decorators.py
Normal file
@@ -0,0 +1,27 @@
|
||||
# -----------------
|
||||
# not found decorators
|
||||
# -----------------
|
||||
@not_found_decorator
|
||||
def just_a_func():
|
||||
return 1
|
||||
|
||||
#? []
|
||||
just_a_func()
|
||||
|
||||
#? []
|
||||
just_a_func.
|
||||
|
||||
|
||||
class JustAClass:
|
||||
@not_found_decorator2
|
||||
def a(self):
|
||||
return 1
|
||||
|
||||
#? []
|
||||
JustAClass().a.
|
||||
#? []
|
||||
JustAClass().a()
|
||||
#? []
|
||||
JustAClass.a.
|
||||
#? []
|
||||
JustAClass().a()
|
||||
@@ -222,7 +222,6 @@ exe = fu(list, set, 3, '', d='')
|
||||
#? str()
|
||||
exe[3][0]
|
||||
|
||||
|
||||
# -----------------
|
||||
# generators
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user