mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-10 06:31:57 +08:00
Add 'yield' inside async function' for Python 3.5.
This commit is contained in:
@@ -4,7 +4,6 @@ Mostly allowed syntax in Python 3.5.
|
||||
|
||||
|
||||
async def foo():
|
||||
yield 1
|
||||
await bar()
|
||||
#: E901
|
||||
yield from []
|
||||
@@ -16,7 +15,6 @@ async def foo():
|
||||
# With decorator it's a different statement.
|
||||
@bla
|
||||
async def foo():
|
||||
yield 1
|
||||
await bar()
|
||||
#: E901
|
||||
yield from []
|
||||
|
||||
Reference in New Issue
Block a user