mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 14:04:26 +08:00
Add some dynamic inference checks for annotations
This commit is contained in:
@@ -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