Here it is working as is on my Python with PEP 622
build:
```
Python 3.10.0a0
(heads/patma:1ba56a003b, Aug 6 2020, 02:00:58)
Type 'copyright', 'credits' or 'license' for more
information
IPython 7.17.0 -- An enhanced Interactive Python. Type '?'
for help.
In [1]: from dataclasses import dataclass
In [2]: @dataclass
...: class Point:
...: x: float
...: y: float
...:
In [3]: def get_coords(p):
...: match p:
...: case Point(x=a, y=b):
...: return a, b
...: case _:
...: raise TypeError()
...:
In [4]: get_coords(Point(3, 4))
Out[4]: (3, 4)
```
-jJ