1
0
forked from VimPlug/jedi

function annotations are now safely ignored by the evaluation. the parser just stores them in the right objects.

This commit is contained in:
David Halter
2012-09-02 12:39:11 +02:00
parent acd6488891
commit 1afdb69314
4 changed files with 51 additions and 9 deletions

View File

@@ -320,3 +320,20 @@ nested_def2('', b=1, c=1.0)[1]
nested_def2('', c=1.0, b=1)[1]
#? []
nested_def2('')[1]
# -----------------
# function annotations (should be ignored at the moment)
# -----------------
def annot(a:3, *args:3):
return a, args[0]
#? str()
annot('', 1.0)[0]
#? float()
annot('', 1.0)[1]
def annot_ret(a:3) -> 3:
return a
#? str()
annot_ret('')