Learn all about type hinting (AKA type annotation) in this tutorial by Mike Driscoll
What You’ll Learn
- Pros and Cons of Type Hinting
- Built-in Type Hinting / Variable Annotation
- Collection Type Hinting
- Hinting Values That Could be None
- Type Hinting Functions
- What To Do When Things Get Complicated
- Classes
- Decorators
- Aliasing
- Other Type Hints
This tutorial is based on a chapter from the book Python 101 – 2nd Edition by Michael Driscoll