01Chapter 1: Subtyping by declaration: classes and inheritanceThis chapter assumes you can write Python classes and functions, use basic type annotations, and understand inheritance. You should also know that a static type checker, such as mypy or pyright, checks annotations before the program runs.1 min read