match x: case Class('foobar'): pass