Tin Tvrtković

Results 444 comments of Tin Tvrtković

Here's the actual piece of code that calls `attrs.resolve_types`: https://github.com/python-attrs/cattrs/blob/898e59cc4076328b985d67ae989bc0f96578a9b5/src/cattrs/gen/__init__.py#L102. So we don't do it always, we only do it if there is a string annotation in one of the...

Could you provide a minimal example in code?

Hey, yeah sorry I got sidetracked by other things. > But since the simple dict objects can also contain attrs instances, it must be possible to call the structuring recursively...

Yeah, a simplified example would be good. > To achieve this, the converter would have to be called again within the _structure_dict function. Something like this: ... Of course, this...

I'll take this, but `typing.List` is still a thing in 3.8 ;) I can rerun when you fix the tests.

Here's the problem: ```python conv.register_unstructure_hook( Frame, lambda obj: {"to_add": "something special", **conv.unstructure_attrs_asdict(obj)}, ) ``` If you call into `conv.unstructure_attrs_asdict` directly your `_get_unstructure_without_nones` won't get called (that function will simply do...

Can you give me a more complex example?

Hi! I completely dropped the ball on this and I apologize for that, I got sidetracked by other things and forgot about this. I will try to integrate this into...

Is your virtual environment set up properly, and did you use PDM (the packaging tool we use) to set it up using the lockfile? It's failing to import `CodecOptions` from...

Howdy, sure, let's brainstorm! Can you describe a scenario to try to cover? One solution that comes to mind would be using multiple incanter objects, one for each dependency scope....