buildtools icon indicating copy to clipboard operation
buildtools copied to clipboard

`buildifier` fails to parse `...` (ellipsis literal)

Open 9999years opened this issue 3 months ago • 0 comments

buildifer fails to parse files that include the ellipsis literal ..., which is used by Buck2 to indicate variadic tuples:

$ echo "MyType = tuple[str, ...]" | buildifier
<stdin>:1:23: syntax error near .
<stdin> # reformat

9999years avatar Oct 17 '25 18:10 9999years