From 7bdd71f9a78b7ba96c662b56f6002b8da932ee23 Mon Sep 17 00:00:00 2001 From: Dave Halter Date: Tue, 3 Sep 2019 00:56:42 +0200 Subject: [PATCH] Add some dynamic inference checks for annotations --- test/completion/pep0484_typing.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/completion/pep0484_typing.py b/test/completion/pep0484_typing.py index 56c506de..163050a8 100644 --- a/test/completion/pep0484_typing.py +++ b/test/completion/pep0484_typing.py @@ -422,3 +422,15 @@ def cast_tests(): #? str() cast_tests() + + +# ------------------------- +# dynamic +# ------------------------- + +def dynamic_annotation(x: int): + #? int() + return x + +#? int() +dynamic_annotation('')