black/tests/data/python37.py
Zsolt Dollenstein 883689366c Support parsing of async generators in non-async functions (#165)
This is a new syntax added in python3.7, so black can't verify that reformatting will not change the ast unless black itself is run with 3.7. We'll need to change the error message black gives in this case. @ambv any ideas?

Fixes #125.
2018-08-20 14:47:58 +01:00

14 lines
171 B
Python

#!/usr/bin/env python3.7
def f():
return (i*2 async for i in arange(42))
# output
#!/usr/bin/env python3.7
def f():
return (i * 2 async for i in arange(42))