Tin Tvrtković

Results 444 comments of Tin Tvrtković

But in this case, you're unstructuring instances of enums, not the enum definitions itself. Here's a version with the hooks commented out, which works: https://replit.com/@TinTvrtkovic/cattrs235#main.py

Are you trying to unstructure a type annotated attrs class? Can you just annotate the field as `enum.Enum` instead of `Any`?

@RomainMuller Interesting. I could make the `Any` type annotation behave as if there is no annotation present, so it would use the actual type of the value. There might be...

I don't personally use them but I wouldn't mind having them in for others.

Hi! Thanks for the detailed write up. I'll brood on this and get back to you.

Yep, I agree we should do this. Should the list of primitive types be on the `preconf` converters though? Feel like different serialization formats might support different primitives.

Oh interesting, we've seen this at my job too but figured it was some sort of Poetry weirdness. What's the exact fix though? Make it `< 3.11`?

Cool. Guess I need to get a move on on finishing up the next version :p