Catch type errors in Python before code runs.
Guides improvements to Python code through explicit type annotations, reusable generic types, structural interfaces, and strict static checks.
When to use it
Use when adding type hints, creating generic classes, defining protocols, configuring strict type checking, or building type-safe APIs.
It changes how the agent writes and checks Python project code by requiring annotated public APIs and recommending strict type checking.
What you provide
The preferred union syntax uses Python 3.10 or later; the files also show older annotation syntax for Python 3.9.
The best-practices checklist calls for running mypy in strict mode in CI.
No additional actions listed.