Tin Tvrtković

Results 444 comments of Tin Tvrtković

Since people have asked for it before, and if we make the feature good, maybe there's a path to standardization. That said, I've done a little more research and ran...

It looks like Mypy type inference isn't strong enough. ```python reveal_type([validators.max_len(10), is_not_empty]) # Revealed type is "builtins.list[builtins.function]" ``` Funnily enough, if you hold its hand enough, it works: ```python from...

It wouldn't be the end of the world, but I wish we could come up with a better solution.

I'm in favor of fixing this on philosophical grounds (I'm bothered by dataclasses doing a thing better than us) ;)

Here are the changes for the next step. We need to make `Converter` generic over the input and output types: ```python In = typing.TypeVar("In") Out = typing.TypeVar("Out") class Converter(typing.Generic[In, Out]):...

Hm yeah, something here should be covariant I guess?

Don't be a coward and inject it into `__hash__` as a parameter default.

Will be taking a look at this soon.

Sounds cool. Could you keep me in the loop? I'm interested. On Sun, Jun 25, 2023 at 12:37 PM Nikita Sobolev ***@***.***> wrote: > *Feature* > > This PR introduces...

I would argue this behavior should be the default. It's more useful and it's the default in Mypy, after all.