introduced a dynamic completion for params

This commit is contained in:
David Halter
2012-08-05 17:24:26 +02:00
parent c2a5876d7b
commit ee798b03f2
6 changed files with 105 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
"""
This is used for dynamic object completion.
Jedi tries to guess the types with a backtracking approach.
"""
def func(a):
#? int() str()
return a
#? int()
func(1)
func
int(1) + (int(2))+ func('')

View File

@@ -70,6 +70,12 @@ def a(a=3):
a(2)
#? []
a(2).func
a_param = 3
def func(a_param):
# should not be int
#? []
a_param.
# -----------------
# class
# -----------------