forked from VimPlug/jedi
add test that jedi doesn't break in case of non-pep-0484 comments
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user