Check type compatibility of your program!

Nominal v.s. Structural sub typing in Python.

If you have used Inheritance in Python, you have used nominal sub typing. But in Python there is another way to make subtypes and that is with structural sub typing. In this video you learn the difference and how to use a type checker to check type compatibility of your program.

Written by Loek van den Ouweland on 2024-03-19.
Questions regarding this artice? You can send them to the address below.