AI Engineer - Learn how to integrate AI into software applications
Google, IBM & Meta Certificates — 40% Off for a Limited Time
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
Learn advanced type hinting strategies for maintaining and improving Python projects in this 25-minute conference talk from EuroPython 2025. Discover how to move beyond basic type hints and frequent use of `typing.Any`, outdated `typing.List`/`typing.Dict` syntax, and excessive `# type: ignore` comments to create a robust typing foundation. Explore practical techniques including leveraging newer features like `typing.TypeIs` from Python 3.13 and `typing_extensions` for backward compatibility, using `pyupgrade` via `ruff` to automatically modernize type hints, implementing partial ignores instead of blanket type ignore comments, and integrating `pre-commit` and CI checks for early issue detection. Examine before-and-after code examples demonstrating how to add types to example code for detecting subtle incompatibilities, similar to how tests reveal hidden bugs. Follow a gradual implementation approach designed to prevent team overwhelm while establishing typing as a stable foundation that reduces bugs, facilitates safer refactoring, and supports long-term project growth.
Syllabus
Type Hints in Real-World Projects: Maintenance & Improvement — Koudai Aono
Taught by
EuroPython Conference