Add and fix some async/await issues.

This commit is contained in:
Dave Halter
2017-07-20 17:27:51 +02:00
parent 9296fe3def
commit fa30872d26
3 changed files with 31 additions and 3 deletions

View File

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