Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
oivey
3y ago
0 comments
Share
They don't work in the way you would think for dataclasses or at all for dicts/TypedDicts.
See this for dataclasses:
https://github.com/python/mypy/issues/5374#issuecomment-8841...
.
undefined | Better HN
0 comments
default
newest
oldest
BerislavLopac
3y ago
This is a ridiculous example, because dataclasses and protocols are orthogonal: dataclasses (help) define data structures, while protocols define behaviour.
j
/
k
navigate · click thread line to collapse