In the final article of the type hinting series, we look at some of the smaller features that are really useful to know....
series-typehints
5 Articles
5
Union types are a very powerful feature, especially in a dynamic language like Python where a variable could have many valid types...
We briefly encountered the concept of covariance in the previous article. Now lets take a deeper look....
Today we are going to discuss an important concept in typing called Generics. This is a topic that is very basic and complex at the same time. You will see it everywhere if you ever worked in a modern static typed language, yet it few developers really understand it....
To celebrate the release of mypy 1.0, we are going to be doing a series of articles on the various facets of Python's type hinting feature. In this article, we see how to get started with the feature....