Y
Hacker News
new
|
ask
|
show
|
jobs
by
bvrmn
249 days 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...