News for hackers. Stuff that matters.
Re:I use Attrs instead of Pydantic by janto on Thursday August 26, 2021 @11:08AM (#28315915)
A sprinkling of type annotations to help with ambiguity is nice. However, I don't recall the last time I spent ages figuring out what type I need to pass to a function if it simply wants a builtin type. It's usually the semantics or a library-unique type (ugh!) that I have to look up.
Re:I use Attrs instead of Pydantic by icedchai on Thursday August 26, 2021 @11:20AM (#28316071)
Definitely. This to be especially terrible with some libraries (example: sqlalchemy) which have a crap load of types. You're not really sure what's being returned, etc.