forked from VimPlug/jedi
check 'assigned types'-support (comes out of the jedi-box), and add tests for that
This commit is contained in:
@@ -10,7 +10,7 @@ v Function returntype annotations with builtin/custom type classes
|
|||||||
v Function parameter annotations with strings (forward reference)
|
v Function parameter annotations with strings (forward reference)
|
||||||
v Function return type annotations with strings (forward reference)
|
v Function return type annotations with strings (forward reference)
|
||||||
x Local variable type hints
|
x Local variable type hints
|
||||||
x Assigned types: `Url = str\ndef get(url:Url) -> str:`
|
v Assigned types: `Url = str\ndef get(url:Url) -> str:`
|
||||||
x Type hints in `with` statements
|
x Type hints in `with` statements
|
||||||
x Stub files support
|
x Stub files support
|
||||||
x support `@no_type_check` and `@no_type_check_decorator`
|
x support `@no_type_check` and `@no_type_check_decorator`
|
||||||
|
|||||||
@@ -133,3 +133,12 @@ def function_forward_reference_dynamic(
|
|||||||
|
|
||||||
def return_str_type():
|
def return_str_type():
|
||||||
return str
|
return str
|
||||||
|
|
||||||
|
|
||||||
|
X = str
|
||||||
|
def function_with_assined_class_in_reference(x: X, y: "Y"):
|
||||||
|
#? str()
|
||||||
|
x
|
||||||
|
#? int()
|
||||||
|
y
|
||||||
|
Y = int
|
||||||
|
|||||||
Reference in New Issue
Block a user