Y
Hacker News
new
|
ask
|
show
|
jobs
by
cbsmith
636 days ago
That seems a lot like duck typing to me.
1 comments
maleldil
635 days ago
Yes, it is. Typed Python supports duck typing to some extent; see typing.Protocol and stuff like Sequence, Iterable, Mapping, etc.
link
cbsmith
635 days ago
I'd argue non-typed Python supports duck typing pretty well too, so you don't necessarily need Typed Python to support it.
link