mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-19 07:41:32 +08:00
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()
|
#? str()
|
||||||
cast_tests()
|
cast_tests()
|
||||||
|
|
||||||
|
|
||||||
|
# -------------------------
|
||||||
|
# dynamic
|
||||||
|
# -------------------------
|
||||||
|
|
||||||
|
def dynamic_annotation(x: int):
|
||||||
|
#? int()
|
||||||
|
return x
|
||||||
|
|
||||||
|
#? int()
|
||||||
|
dynamic_annotation('')
|
||||||
Reference in new issue
Block a user