Tin Tvrtković
Tin Tvrtković
Interesting, the hooks should be generated only once in any case. Would be curious if you can get a small repro?
I tried getting a repro: ```python from attrs import define from cattrs import GenConverter c = GenConverter() @define class Test: a: int b: int c: int while True: c.structure({"a": 1,...
Ah, you seem to be creating a converter in a loop. I strongly advise not doing that, not only with cattrs, but also with libraries like attrs and dataclasses. All...
This is something I would definitely like to support, since getting an error somewhere deep can be very annoying indeed. Need to think about it.
This is probably the next big feature I work on :)
You got it right. `register_structure_hook` delegates the logic to a `functools.singledispatch` instance, and those don't work well with a lot of these more advanced use cases. So then you use...
Hello, thanks for contributing. Unfortunately this PR makes the happy path almost twice slower. ``` $ pyperf timeit -g -s 'from cattrs import structure; t = tuple[int, str];v = [1,...
What is `an un-sized operable with Moreno values`?
I'll merge this in now. I might work on it a little more myself. Thanks!
We don't support classes that are *both* a dataclass and an attrs class. Checking out the library you mentioned, that's what's happening. I don't have plans to enable this since...