News for hackers. Stuff that matters.
Re:I use Attrs instead of Pydantic by nerdponx on Thursday August 26, 2021 @07:54AM (#28313725)
Design-by-contract, perhaps? There are a couple libraries like this currently, and you could pretty easily write your own framework for it.

Also, Attrs and Pydantic both support arbitrary additional validation on fields.

There are no comments on this comment yet.