Add some dynamic inference checks for annotations
This commit is contained in:
1 parent
a67861a320
commit
7bdd71f9a7
1 file changed
+12
@@ -422,3 +422,15 @@ def cast_tests():
|
||||
|
||||
#? str()
|
||||
cast_tests()
|
||||
|
||||
|
||||
# -------------------------
|
||||
# dynamic
|
||||
# -------------------------
|
||||
|
||||
def dynamic_annotation(x: int):
|
||||
#? int()
|
||||
return x
|
||||
|
||||
#? int()
|
||||
dynamic_annotation('')
|
||||
Reference in new issue
Block a user