Some changes in the PEP 0484 understanding (more future compatible)
This commit is contained in:
1 parent
b3a07941bb
commit
53ca7c19cd
1 file changed
+2
-2
@@ -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