Launch a New Career with Certificates from Google, IBM & Microsoft
Build AI Apps with Azure, Copilot, and Generative AI — Microsoft Certified
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 practical strategies for maintaining and improving type hints in Python projects beyond basic implementation in this 25-minute conference talk from PyCon US. Discover how to transform typing from a burdensome task into a reliable foundation that reduces hidden issues and builds confidence in code changes. Explore advanced techniques including leveraging newer features like typing.TypeIs from Python 3.13 and typing_extensions for backward compatibility, automating hint updates with pyupgrade through ruff for consistent styling, implementing partial ignores instead of blanket # type: ignore comments, and integrating pre-commit hooks 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 uncover hidden bugs. Follow a gradual implementation approach designed to prevent team overwhelm while establishing typing as a stable base that reduces bugs, facilitates safer refactoring, and supports long-term project growth and Python version upgrades.
Syllabus
Type Hints in Real-World Projects: Practical Steps for Continuous Maintenance and Improvement
Taught by
PyCon US