Introduction to Typing Module

Let's discuss the typing module and examples.

Python 3.5 added an interesting new library called typing. This adds type hinting to Python.

Type hinting is kind of declaring our function’s arguments to have a certain type. However the type hinting is not binding. It’s just a hint, so there’s nothing preventing the programmer from passing something they shouldn’t. This is Python after all. We can read the type hinting specification in ...