match x: case Class('foo' 'bar'): pass