mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
That is, the `*T` in `def foo(*args : *T): ...`. This is apparently a piece of syntax we did not support correctly until now. In terms of the grammar, we simply add `list_splat` as a possible alternative for `type` (which could previously only be an `expression`). We also update `python.tsg` to not specify `expression` those places (as the relevant stanzas will then not work for `list_splat`s). This syntax is not supported by the old parser, hence we only add a new parser test for it.
3 lines
52 B
Python
3 lines
52 B
Python
def tuple_typed_list_splat(*args : *ARGS):
|
|
pass
|