YoVDO

Enhancing Decorators with Type Annotations - Techniques and Best Practices

Offered By: PyCon US via YouTube

Tags

Python Courses Type Annotations Courses Mypy Courses Static Type Checking Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore techniques and best practices for enhancing Python decorators with type annotations in this 21-minute PyCon US talk. Learn how to leverage type hints to improve decorator clarity, catch errors early, and reduce debugging time. Discover practical implementations using advanced typing features like TypeVarTuple, Protocol, ParamSpec, Concatenate, and Type Parameter Syntax. Gain insights into making decorators more robust and user-friendly, addressing common questions about argument passing, function targeting, and return type changes. Apply these strategies to create well-typed decorators that enhance code quality and guide developers towards correct usage in their projects.

Syllabus

Talks - Koudai Aono: Enhancing Decorators with Type Annotations: Techniques and Best Practices


Taught by

PyCon US

Related Courses

Crystal
Exercism
Use TypeScript to Develop Vue.js Web Applications
egghead.io
Type Systems Will Make You a Better JavaScript Developer - React Conf 2017
Meta via YouTube
Static Type Checking in JavaScript with Flow
Traversy Media via YouTube
PHP to Hack - An Incrementally Typed Adventure at Slack
International PHP Conference via YouTube