Add some dynamic inference checks for annotations

This commit is contained in:
Dave Halter
2019-09-03 00:56:42 +02:00
parent a67861a320
commit 7bdd71f9a7

View File

@@ -422,3 +422,15 @@ def cast_tests():
#? str()
cast_tests()
# -------------------------
# dynamic
# -------------------------
def dynamic_annotation(x: int):
#? int()
return x
#? int()
dynamic_annotation('')