mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 03:30:13 +08:00
add some tests to show that type-hints on the next line don't work
This commit is contained in:
1 parent
641fb80773
commit
a9ebe71c64
1 file changed
+14
@@ -78,9 +78,23 @@ for bar, baz in foo(): # type: int, float
|
|||||||
#? float()
|
#? float()
|
||||||
baz
|
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(): # type: int
|
||||||
...
|
...
|
||||||
|
|
||||||
with foo() as f: # type: str
|
with foo() as f: # type: str
|
||||||
#? str()
|
#? str()
|
||||||
f
|
f
|
||||||
|
|
||||||
|
with foo() as f:
|
||||||
|
# type: str
|
||||||
|
""" type hinting on next line should not work """
|
||||||
|
#?
|
||||||
|
f
|
||||||
Reference in new issue
Block a user