Type Hints and Overloaded Functions

Let's learn about hints' types and overloaded functions.

One obvious place in our code that we think Type Hints would work great is overloaded functions. Let’s grab the overloaded adding function we worked on previously and take a look at how much better it will be with type hints.

Example of overloaded function

Here’s the original code:

Get hands-on with 1400+ tech skills courses.