1
0
forked from VimPlug/jedi

add test that jedi doesn't break in case of non-pep-0484 comments

This commit is contained in:
Claude
2015-12-15 00:37:23 +01:00
parent 3cef8b6d55
commit 1258875300

View File

@@ -110,3 +110,13 @@ class SelfReference:
#? SelfReference()
SelfReference().test_method()
def function_with_non_pep_0484_annotation(x: "I can put anything here", y: 3 + 3) -> int("42"):
# infers int from function call
#? int()
x
# infers str from function call
#? str()
y
#?
function_with_non_pep_0484_annotation(1, "force string")