News for hackers. Stuff that matters.
Re:Attrs – the Python library everyone needs (2016) by jhardy54 on Friday December 24, 2021 @04:07PM (#29677739)
Pydantic works with mypy, so you have validation at build-time and parsing at runtime.
Re:Attrs – the Python library everyone needs (2016) by timost on Friday December 24, 2021 @08:22PM (#29679423)
Last time I checked. Constrained types do not work with mypy out of the box.

https://github.com/samuelcolvin/pydantic/issues/975

Re:Attrs – the Python library everyone needs (2016) by jhardy54 on Sunday December 26, 2021 @12:13PM (#29694188)
Thanks! I didn’t know about that.