Re:Proposing a Struct Syntax for Python
by Spivak on Wednesday June 14, 2023 @02:30PM
(#36330416)
Pydantic does though.
[ Parent
| on HN ]
You are a friend and a scholar.
I was looking for a solution in pydantic that is wildly relevant. Thanks, I didn’t realize that was implemented/existed.
My only objection is using ABC in your MRO. Haha, just a little bit overloaded with abstract base classes and using A, B, and C.
I got it eventually! Cool.
Ya know what, on reading that that does seem confusing. My brain had long since internalized ABC as a single token I didn't even notice.