mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 06:24:27 +08:00
Some changes in the PEP 0484 understanding (more future compatible)
This commit is contained in:
@@ -68,7 +68,7 @@ def return_annotation_and_docstring() -> str:
|
|||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
#? str() int()
|
#? str()
|
||||||
return_annotation_and_docstring()
|
return_annotation_and_docstring()
|
||||||
|
|
||||||
|
|
||||||
@@ -138,7 +138,7 @@ 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(),
|
||||||
y: "return_str_type()") -> None:
|
y: "return_str_type()") -> None:
|
||||||
#?
|
#? str()
|
||||||
x
|
x
|
||||||
#? str()
|
#? str()
|
||||||
y
|
y
|
||||||
|
|||||||
Reference in New Issue
Block a user