1
0
forked from VimPlug/jedi

test dynamic annotation and dynamic forward reference

This commit is contained in:
Claude
2015-12-15 11:53:48 +01:00
parent 1258875300
commit 35fda3823e

View File

@@ -120,3 +120,16 @@ def function_with_non_pep_0484_annotation(x: "I can put anything here", y: 3 + 3
y
#?
function_with_non_pep_0484_annotation(1, "force string")
def function_forward_reference_dynamic(
x: return_str_type(),
y: "return_str_type()") -> None:
# technically should not be resolvable since out of scope,
# but jedi is not smart enough for that
#? str()
x
#? str()
y
def return_str_type():
return str