santinic / pampy

Pampy: The Pattern Matching for Python you always dreamed of.
MIT License
3.51k stars 125 forks source link

match on different types of dataclasses #14

Closed ldobrek closed 5 years ago

ldobrek commented 5 years ago

It is I think fairly self explanatory. The condition (patter.__class__ == value.__class__) should be a no op for current use. But if we try to match on multiple dataclasses it will allow for correct resolution.

santinic commented 5 years ago

Thank you Steven.