3 ms·
To each their own. I dislike Marshmallow and I adore pydantic. Runtime validation that aligns with static types makes sense to my brain, and keeps me from losin
by kortex 5y ago
To each their own. I dislike Marshmallow and I adore pydantic. Runtime validation that aligns with static types makes sense to my brain, and keeps me from losing my mind in a complex system.
I don't think making the type annotations lazy is a "fuck you" to pydantic, but it is a breaking change on a minor revision.
- williamsmj 5y agoWell, it is a breaking change on a minor revision, but Python doesn't use semantic versioning so there's no reason that can't happen. The relevant PEP, https://www.python.org/dev/peps/pep-0387/ https://www.python.org/dev/peps/pep-0387/, states that breaking changes may be made with two minor versions of warning (or one major version). Minor versions are released on a calendar schedule (again, not semantic versioning), so this policy is 2-3 years of warning in practice.
- mixmastamyk 5y agoWhich again is a poor way to go about things.