Some changes in the PEP 0484 understanding (more future compatible)

This commit is contained in:
Dave Halter
2018-08-09 23:32:04 +02:00
parent b3a07941bb
commit 53ca7c19cd

View File

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