←back to thread

196 points vinhnx | 1 comments | | HN request time: 0.001s | source
Show context
iLoveOncall ◴[] No.45056540[source]
I really wish Pydantic invested in... Pydantic, instead of some AI API wrapper garbage.

I've been using it a lot lately and anything beyond basic usage is an absolute chore.

replies(3): >>45056749 #>>45057785 #>>45057990 #
dcreater ◴[] No.45057785[source]
I wish Python would improve to bridge the gaps between pydantic and dataclasses, so that we don't have to rely on pydantic. It's too foundational a piece to not be part of the core python anymore
replies(4): >>45058029 #>>45060570 #>>45060714 #>>45061676 #
1. JimDabell ◴[] No.45058029[source]
attrs + cattrs is pretty close. I know it’s not in the stdlib, but dataclasses were modelled on attrs in the first place and using attrs + cattrs feels quite a bit more idiomatic than Pydantic.