From a9ebe71c64f17d6522ec6ad8683ba50728dbeecc Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 15 Feb 2016 17:54:20 +0100 Subject: [PATCH] add some tests to show that type-hints on the next line don't work --- test/completion/pep0484_comments.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/completion/pep0484_comments.py b/test/completion/pep0484_comments.py index 8e907065..6b8b59bd 100644 --- a/test/completion/pep0484_comments.py +++ b/test/completion/pep0484_comments.py @@ -78,9 +78,23 @@ for bar, baz in foo(): # type: int, float #? float() baz +for bar, baz in foo(): + # type: str, str + """ type hinting on next line should not work """ + #? + bar + #? + baz + with foo(): # type: int ... with foo() as f: # type: str #? str() f + +with foo() as f: + # type: str + """ type hinting on next line should not work """ + #? + f