Tin Tvrtković

Results 444 comments of Tin Tvrtković

I'm aware, the fix will be ready for the next release. Must've had a brain fart when I wrote the type annotation for it. In the meantime, please #type: ignore...

It looks like this was already fixed on main, please verify for me by trying it against the git repo and close if so ;)

Yeah, the next version should be out in a couple of weeks while we finish up some big features.

Ah, the tuple un/structuring functions aren't optimized yet. Until someone contributes this, you'll need to call `attrs.resolve_types` on your classes manually (needs to be done only once) if you're using...

Hello, you're trying to unstructure the enum class instead of an enum member. Try `unstructure(CatBreed.SIAMESE)` instead.

Ah interesting. What would you expect the unstructured data to be? Just the name of the enum or an entire definition of the enum?

This isn't supported out of the box but it's not hard to do it yourself. Since this is a more complex case, you'll need to use `converter.register_unstructure_hook_func`. You'll need two...

There are probably many ways to solve this, `register_unstructure_hook_func` is probably the simplest. @andatt which version of Python are you using?