
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.
14 lines
171 B
Python
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))
|