Comment by bvrmn
11 hours ago
Technically there is dataclass_transform [1]. It's an ungodly hack, I don't know how it passed PEP review. And support by type checkers is questionable. After TS python hints feels like rigid and total unsound mess.
[1]: https://docs.python.org/3/library/typing.html#typing.datacla...
No comments yet
Contribute on Hacker News ↗