Tin Tvrtković

Results 444 comments of Tin Tvrtković

Howdy, I'm about to merge in an explicit backwards compatibility policy. This should answer some of your questions, but to reiterate: * we aim to avoid major changes that would...

Going to close this as stale, please open another issue if you need more help ;)

Hello! > using default = None is not a possible solution for me, as I would have to reorder the fields in my class so that those with defaults are...

Ah I see, alright. And you'd like to do this just for Optionals? Gonna think about this a little.

So there's https://catt.rs/en/stable/validation.html#transforming-exceptions-into-error-messages in the last release, 23.1.x. I'm going to close this as complete, let's open new tickets for any desired improvements!

@wbolster You're not doing anything wrong, it's just a limitation of the Python typing system. The method is annotated to accept `type[T]` and return `T`, this doesn't work with unions...

Thanks for the ideas. There's a new API for validation and customization coming in 24.1. Going to close this as stale though, the OP is 6 years old almost ;)

It'll be in the next milestone, alongside new _attrs_ aliases!

Closing as stale!