mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-07 22:44:27 +08:00
Add some dynamic inference checks for annotations
This commit is contained in:
@@ -422,3 +422,15 @@ def cast_tests():
|
|||||||
|
|
||||||
#? str()
|
#? str()
|
||||||
cast_tests()
|
cast_tests()
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------
|
||||||
|
# dynamic
|
||||||
|
# -------------------------
|
||||||
|
|
||||||
|
def dynamic_annotation(x: int):
|
||||||
|
#? int()
|
||||||
|
return x
|
||||||
|
|
||||||
|
#? int()
|
||||||
|
dynamic_annotation('')
|
||||||
|
|||||||
Reference in New Issue
Block a user