Files
releases/v1
Johan Fylling 6a5a0c2570 format: Wrap set union | infix in parens when output would be re-interpreted as comprehension (#8977)
The set union infix operator shares the `|` symbol with comprehensions,
creating edge-cases where the formatter would change the semantics of a
set union into a comprehension.

E.g. When formatted, `{or(a, b)}` becomes `{a | b}`; where the former is
a set containing the union of two sets, and the latter is a set
comprehension.

Note: the `or()` built-in backing the `|` set union infix operator isn't
advertised through documentation, and it's very unlikely that anyone is
affected by this issue. Nevertheless, formatting shouldn't change the
semantics of a policy.

Signed-off-by: Johan Fylling <johan.dev@fylling.se>
2026-08-06 09:13:51 -05:00
..
2026-07-30 14:38:54 -05:00
2026-07-24 10:15:07 +02:00
2025-10-10 17:51:02 +02:00
2026-07-24 10:15:07 +02:00
2026-05-13 13:11:27 +02:00
2024-12-12 15:27:34 +01:00