Tin Tvrtković

Results 444 comments of Tin Tvrtković

I'm kind of thinking about this in the background. Possible solutions: 1) use a custom class instead of a string for the `__notes__` note, with metadata and an overriden `__str__`...

Howdy, so here's status update. I've decided to go with a string subclass for the `__notes__`, but I think I've managed to hide it behind a nicer facade so unless...

Merged! Thanks everyone. Let's open new issues for anything that comes up.

It's been a while, going to close this as stale. Feel free to open a new one if you want to continue!

Oh this was actually added in [23.1.0](https://catt.rs/en/stable/history.html#id5), so closing this.

So I'm bored and going over ancient cattrs issues to see what I can weed out. The main issue here is that Mypy won't let you use a union in...

Ah sorry, I meant that `type[T]` doesn't bind to a union: https://mypy-play.net/?mypy=latest&python=3.11&flags=strict&gist=085e358a161c48939c6d8b9996b6e487 A core cattrs thing is: ``` from cattrs import structure a = structure("whatever", str | int) # `a:...

Apart from this issue being almost 6 years old, this actually works out of the box nowadays! ```python from __future__ import annotations from attrs import Factory, define from cattrs import...

Nice! I'm in the process of adding this plugin to the cattrs test suite and I think I want this. To explain my use case: I want to run Mypy...