A week I saw someone commenting he was surprised that Python had typehints.
So I guess there is long way to go ahead proper use of optional static typing.
From my perspective, I believe that structural typing makes more sense in Python. Fortunately, modern typing module offers nominal and structural types.
Still, we need more articles like this. It is bothersome to see here only articles dealing with basics.
I wonder what do you think about approach I described here:
A week I saw someone commenting he was surprised that Python had typehints.
So I guess there is long way to go ahead proper use of optional static typing.
From my perspective, I believe that structural typing makes more sense in Python. Fortunately, modern typing module offers nominal and structural types.
Still, we need more articles like this. It is bothersome to see here only articles dealing with basics.
I wonder what do you think about approach I described here:
dev.to/hanpari/how-to-use-single-d...
I love
singledispatch
! I even wrote a fully typed version of it, check it out: github.com/dry-python/classesWhat a splendid idea!
I really like it