Re:Python type hints may not be not for me in practice
by maxbond on Thursday November 28, 2024 @10:29PM
(#42270558)
I think the cleaner alternative would be to use a static or class method as an alternative constructor and use the init the dataclass decorator provides for you. Eg something like:
[ Parent
| on HN ]
There are no comments on this comment yet.