mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-18 06:19:39 +08:00
Add some completion tests.
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
"""
|
||||||
|
Special cases of completions (typically special positions that caused issues
|
||||||
|
with context parsing.
|
||||||
|
"""
|
||||||
|
|
||||||
|
def pass_decorator(func):
|
||||||
|
return func
|
||||||
|
|
||||||
|
|
||||||
|
def x():
|
||||||
|
return (
|
||||||
|
1,
|
||||||
|
#? ["tuple"]
|
||||||
|
tuple
|
||||||
|
)
|
||||||
|
|
||||||
|
# Comment just somewhere
|
||||||
|
|
||||||
|
|
||||||
|
class MyClass:
|
||||||
|
@pass_decorator
|
||||||
|
def x(foo,
|
||||||
|
#? 5 ["tuple"]
|
||||||
|
tuple,
|
||||||
|
):
|
||||||
|
return 1
|
||||||
Reference in New Issue
Block a user