Contribute Media
A thank you to everyone who makes this possible: Read More

Advanced Typing: TypeVars, Generics, and Protocols

Description

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

Details

Improve this page