mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-08 13:45:01 +08:00
Add and fix some async/await issues.
This commit is contained in:
19
test/normalizer_issue_files/allowed_syntax_python3.5.py
Normal file
19
test/normalizer_issue_files/allowed_syntax_python3.5.py
Normal 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 []
|
||||
Reference in New Issue
Block a user