Add 'yield' inside async function' for Python 3.5.

This commit is contained in:
Dave Halter
2017-08-05 22:33:11 +02:00
parent 94570acef7
commit 63e30843dc
3 changed files with 19 additions and 8 deletions

View File

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