Tin Tvrtković

Results 444 comments of Tin Tvrtković

This is actually an interesting case. You're using the value `1`, which is of class `int`. The target type is `float | B`. As far as type checkers are concerned,...

Fixed it by special-casing the int/float behavior in the next version!

Can you paste in the exact exception that sometimes flies out? Maybe it'll help.

From your snippets I'm also going to assume you're using `include_subclasses` too? Otherwise that structure call would always just return `BaseClass`.

There's not really a way to improve this on our own. We need PEP 747 to be accepted and implemented: https://peps.python.org/pep-0747/ The good news is that it's almost certainly going...

I hadn't really considered this. I'd be open to changing it.

Hello! Cattrs and attrs validation are completely separate, unfortunately. Cattrs looks at your types (fields `a` and `b`) and ensures they are strings. Then it instantiates the attrs class as...

Hm, ok. The solution will probably be in cattrs. I don't think we want to inspect attrs validators and run them - we cannot avoid running them when instantiating the...

Confirming. Let's see if I can get this fixed before the next release.