Re:I love coding in C
by Too on Thursday December 26, 2019 @01:06PM
(#21885545)
mypy recently got structural typing. They call it Protocols, which isn't the first thing one one put into google when looking for this feature. It's not as powerful and terse as typescript unfortunately.
[ Parent
| on HN ]
They also added TypedDict recently https://mypy.readthedocs.io/en/latest/more_types.html