dflook / python-minifier

Transform Python source code into its most compact representation
MIT License
553 stars 40 forks source link

Unnecessary parentheses around assignment expressions in tuple #99

Open Cassy-Lee opened 3 months ago

Cassy-Lee commented 3 months ago

When I'm trying to minify the code below:

{(A:=1,B:=2)}

The minifier adds parentheses around the assignment expression, resulting in an increase of 2 bytes per assignment expressions:

{((A:=1),(B:=2))}