Re:I love coding in C
by Latty on Thursday December 26, 2019 @10:40AM
(#21884507)
I've played with mypy a little, and it's certainly not bad, but it does suffer by comparison to typescript, which just has a lot of really great structural typing features that mypy still lacks.
[ Parent
| on HN ]
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.
They also added TypedDict recently https://mypy.readthedocs.io/en/latest/more_types.html