Enhancing Decorators with Type Annotations - Techniques and Best Practices
EuroPython Conference via YouTube
Google AI Professional Certificate - Learn AI Skills That Get You Hired
Learn Excel & Financial Modeling the Way Finance Teams Actually Use Them
Overview
Google, IBM & Meta Certificates — All 10,000+ Courses at 40% Off
One annual plan covers every course and certificate on Coursera. 40% off for a limited time.
Get Full Access
Explore techniques and best practices for enhancing decorators with type annotations in this 24-minute conference talk from EuroPython 2024. Dive into the power of decorators as syntax sugar for wrapping and enhancing functions, while addressing common challenges in their usage. Learn how to leverage proper type hints to improve decorator clarity, enabling static type checkers like mypy and pyright IDEs to catch errors early and guide development. Master practical implementations of type definitions using advanced typing features such as TypeVarTuple, Protocol, ParamSpec, Concatenate, and Type Parameter Syntax. Gain insights on making your Python projects more robust and reducing debugging time through enhanced decorator type annotations.
Syllabus
Enhancing Decorators with Type Annotations: Techniques and Best Practices — Koudai Aono
Taught by
EuroPython Conference