mirror of
https://github.com/davidhalter/jedi.git
synced 2026-02-18 04:54:12 +08:00
A simple yield should not cause an error, fixes #1117
This commit is contained in:
@@ -208,6 +208,14 @@ def x():
|
||||
#? int()
|
||||
next(x())
|
||||
|
||||
# -----------------
|
||||
# statements
|
||||
# -----------------
|
||||
def x():
|
||||
foo = yield
|
||||
#?
|
||||
foo
|
||||
|
||||
# -----------------
|
||||
# yield from
|
||||
# -----------------
|
||||
|
||||
Reference in New Issue
Block a user