rustpython-ruff_python_parser 0.15.8

Unofficial fork for RustPython
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
match x:
    case [a] | [b]: ...
    case [a] | []: ...
    case (x, y) | (x,): ...
    case [a, _] | [a, b]: ...
    case (x, (y | z)): ...
    case [a] | [b] | [c]: ...
    case [] | [a]: ...
    case [a] | [C(x)]: ...
    case [[a] | [b]]: ...
    case [C(a)] | [C(b)]: ...
    case [C(D(a))] | [C(D(b))]: ...
    case [(a, b)] | [(c, d)]: ...