match x: case Class(1, foo=2, bar=3): pass