cannot parse assignment expression in preview style since 23.1 #3758
Labels
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: bug
Something isn't working
Hello,
I seem to have found a bug in black's preview style regarding assignment expressions, that has been present since version 23.1.0.
Describe the bug
When using an assignment expression in my code example, black with preview=true complains it cannot parse the line. Black preview=false accepts the code happily and leaves no changes.
To Reproduce
Here's my code example:
And run it with these arguments:
The resulting error is:
Expected behavior
It should parse the line like it does with preview=false.
Also, look at the error above. The line of code shown doesn't include the parentheses like it does in my source. Without the parens, cpython can't parse it either!
Environment
Additional context
I love you lots <3
The text was updated successfully, but these errors were encountered: