Closed csqzhang closed 1 month ago
Can confirm the issue. Working on a fix now ;)
I've also added a test for this modeled on your case.
@Tinche thanks for the work. just wondering when the release will happen?
I'm finishing it up, a couple of weeks probably.
Feel free to use git main if you're in a rush, I try to keep it very stable.
Description
I want to use cattrs to (un)strcuture classes.
What I Did
In the example above, we can (un)structure a
B1
instance (e.g.instance
) correctly. However, for aB2
instance (e.g.instance2
), I can see catter unstructure it correctly,r2
looks correctly. However, I gotB2(b='2', a=A())
back when I structure ther2
asA
, which does not equal to the originalinstance2
.