Tin Tvrtković

Results 444 comments of Tin Tvrtković

Yeah, that argument is ancient; I think it was added in the first version to mirror attr.asdict. Back then I think it was used to be able to use an...

Hm, all right. I'm still trying to figure out if the dict factory argument is worthwhile and should be restored or should be deprecated. So let's see if we can...

Yep, better copying is on the roadmap (possibly for the next version). It's been requested several times now.

I'm not sure this is useful enough to be included by default, but a recipe in the Usages section of the docs would be cool!

Two things: * I don't want cattrs to be a kitchen-sink type of library, since it increases complexity and maintenance burden * I do want cattrs to be a kind...

Alright, I consuled some other folks and I've changed my mind. Let's add this.

Just FYI you don't need `auto_attribs=True` when using `define`, that's the default behavior :)

I was bitten by this lately too. Wrap the entire type in quotes, instead of just `'Y'`: ``` import typing import attr import cattr @attr.define class X: a: int b:...

That's an interesting problem. I don't think PEP 563 is in play here directly, that PEP deals with annotations (think a type of a class field or a function argument),...

I'm looking at the source code of `ForwardRef` in Python 3.9.7, and assuming it's essentially the same in all other versions of Python we support. I see ForwardRefs can be...