Match rest keyword arguments of a data class
Open
feature
- Dominant language
- Python
- Stars
- 4.4k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Isn't it possible to match the rest of data class keyword arguments similar to a dictionary?
The code below throws a parse error:
```
data T(a: int, b: int)
t = T(1, 2)
match T(a=arg1, **_) in t: print(arg1)
```
Contributor guide
Assessment
This issue has not been assessed yet.