mirror of
https://github.com/astral-sh/ruff
synced 2026-01-08 15:14:19 -05:00
Treat match and case as soft keywords in lambda assignments (#4623)
This commit is contained in:
@@ -604,6 +604,8 @@ match match:
|
||||
case 1: pass
|
||||
case 2:
|
||||
pass
|
||||
match = lambda query: query == event
|
||||
print(match(12))
|
||||
"#,
|
||||
"<test>",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user