Files
ruff/crates/ruff_python_parser/resources/valid/expressions/lambda.py
Victor Hugo Gomes 78ee6441a7 Replace LALRPOP parser with hand-written parser
Co-authored-by: Micha Reiser <micha@reiser.io>
2024-03-07 16:44:46 +05:30

12 lines
132 B
Python

lambda: 1
lambda a, b, c: 1
lambda a, b=20, c=30: 1
lambda *, a, b, c: 1
lambda *, a, b=20, c=30: 1
lambda a, b, c, *, d, e: 0