File size: 271 Bytes
d8a7ddd
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
match ruff:
    case {"lint": {"select": x} | {"extend-select": x}} | {"select": x}:
        ...
match 42:
    case [[x] | [x]] | x: ...
match 42:
    case [[x | x] | [x]] | x: ...
match 42:
    case ast.Subscript(n, ast.Constant() | ast.Slice()) | ast.Attribute(n): ...