Type Hints
summary
Covers Python’s type hinting features for improving code quality as projects and teams grow, including the language’s static typing capabilities. Reviews related tools and common patterns for using type hints in Python.
AI-written summary · about
chapters (13)
- 0:00Type Hints introduction
- 5:02Function annotations
- 7:54Acceptable types and variables
- 13:54Practical use with mypy
- 16:02Basic and compound types
- 18:34Union and optional types
- 20:42Overloading and generics
- 22:29Nominal vs structural types
- 25:41Python protocols
- 26:48Gradual annotations
- 28:17Stubs for external libraries
- 29:22Type Hints at runtime
- 31:26Q&A
related talks
46mType Hints for Python 3.5
32mPython's New Type Hints in Action… In JavaScript
27m"How to Use Static Typing in Python with Type Hints, MyPy and Pydantic"
29mPython Type hints and how they can supercharge CS education.
31mTaming the Duck with Type Hints
46mHow to make a static type checker your best friend
35mHow you can benefit from type hints
32mStatic Typing in Python
