forked from VimPlug/jedi
add some more non-pep0484-junk to the test
This commit is contained in:
@@ -111,7 +111,11 @@ class SelfReference:
|
|||||||
#? SelfReference()
|
#? SelfReference()
|
||||||
SelfReference().test_method()
|
SelfReference().test_method()
|
||||||
|
|
||||||
def function_with_non_pep_0484_annotation(x: "I can put anything here", y: 3 + 3) -> int("42"):
|
def function_with_non_pep_0484_annotation(
|
||||||
|
x: "I can put anything here",
|
||||||
|
xx: "",
|
||||||
|
yy: "\r\n;+*&^564835(---^&*34",
|
||||||
|
y: 3 + 3) -> int("42"):
|
||||||
# infers int from function call
|
# infers int from function call
|
||||||
#? int()
|
#? int()
|
||||||
x
|
x
|
||||||
@@ -119,7 +123,7 @@ def function_with_non_pep_0484_annotation(x: "I can put anything here", y: 3 + 3
|
|||||||
#? str()
|
#? str()
|
||||||
y
|
y
|
||||||
#?
|
#?
|
||||||
function_with_non_pep_0484_annotation(1, "force string")
|
function_with_non_pep_0484_annotation(1, 2, 3, "force string")
|
||||||
|
|
||||||
def function_forward_reference_dynamic(
|
def function_forward_reference_dynamic(
|
||||||
x: return_str_type(),
|
x: return_str_type(),
|
||||||
|
|||||||
Reference in New Issue
Block a user