1
0
forked from VimPlug/jedi

add some tests to show that type-hints on the next line don't work

This commit is contained in:
Claude
2016-02-15 17:54:20 +01:00
parent 641fb80773
commit a9ebe71c64

View File

@@ -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