Advanced Typing: TypeVars, Generics, and Protocols
Short Talk at 2:06PM EDT
So we've heard about Python type annotations, but let's get into the gritty bits around typing.TypeVar
bounding (inclusive polymorphism), typing.Generic
(parameterized types), and typing.Protocol
(interfaces) to learn how we can leverage types for structural subtyping (static duck typing).
Slides for this talk are available at: https://docs.google.com/presentation/d/1R2IzE-1I1otv1PXbXyR-JvOkBxdRAVDpXpFVmELRatA/edit?usp=drivesdk