bug formatting await (a**b) #3676
Labels
C: crash
Black is crashing
F: parentheses
Too many parentheses, not enough parentheses, and so on.
T: bug
Something isn't working
Describe the bug
black converts
await (a**b)
intoawait a ** b
(if run with --fast)To Reproduce
And run it with these arguments:
The resulting error is:
Expected behavior
black should preserve the braces and be able to format the file
Environment
python -m black, 23.3.1.dev10+geb32729 (compiled: no)
Python (CPython) 3.11.3
Additional context
error log:
For context:
I currently write a generator wich generates random python code. This is still work in progress, but finding bugs in black shows me that I am on the right track.
I will provide a script similar to
scripts/fuzz.py
as soon as it is ready.The text was updated successfully, but these errors were encountered: