1
0
forked from VimPlug/jedi

check 'assigned types'-support (comes out of the jedi-box), and add tests for that

This commit is contained in:
Claude
2015-12-15 11:56:54 +01:00
parent 35fda3823e
commit 1e6397b163
2 changed files with 10 additions and 1 deletions

View File

@@ -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`

View File

@@ -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