Commit 174fc47b authored by Łukasz Langa's avatar Łukasz Langa Committed by Lukasz Langa
Browse files

Fix spurious space in parenthesized set expressions

Fixes #7
parent e1e89091
Loading
Loading
Loading
Loading
+2 −0
Changes for README.md: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -255,6 +255,8 @@ You can still try but prepare to be disappointed.

* fixed invalid spacing of dots in relative imports (#6, #13)

* fixed spurious space in parenthesized set expressions (#7)


### 18.3a0

+1 −0
Changes for black.py: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -895,6 +895,7 @@ def whitespace(leaf: Leaf) -> str:
        syms.or_test,
        syms.and_test,
        syms.arith_expr,
        syms.expr,
        syms.shift_expr,
        syms.yield_expr,
        syms.term,
+8 −0
Changes for tests/expression.py: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -106,6 +106,8 @@
b = 1,
c = 1
d = (1,) + a + (2,)
what_is_up_with_those_new_coord_names = (coord_names + set(vars_to_create)) + set(vars_to_remove)
what_is_up_with_those_new_coord_names = (coord_names | set(vars_to_create)) - set(vars_to_remove)


def gen():
@@ -228,6 +230,12 @@ async def f():
b = 1,
c = 1
d = (1,) + a + (2,)
what_is_up_with_those_new_coord_names = (coord_names + set(vars_to_create)) + set(
    vars_to_remove
)
what_is_up_with_those_new_coord_names = (coord_names | set(vars_to_create)) - set(
    vars_to_remove
)


def gen():