mirror of
https://github.com/davidhalter/parso.git
synced 2026-04-26 09:26:01 +08:00
Add and fix some async/await issues.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"""
|
||||
Mostly allowed syntax in Python 3.5.
|
||||
"""
|
||||
|
||||
|
||||
async def foo():
|
||||
yield 1
|
||||
await bar()
|
||||
#: E901
|
||||
yield from []
|
||||
|
||||
|
||||
# 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