Automated Type Fixer
Resolves static type checking errors by automatically applying type guards, narrowing, and correct annotations without changing runtime behavior.
The fix-types skill automates the intensive process of resolving type errors in Python and TypeScript projects. It intelligently detects your project's configuration for tools like Pyright or Mypy, captures error outputs, and iteratively applies minimal fixes such as type guards, Union types, and Pydantic model updates. Designed to improve code quality without using suppression comments like '# type: ignore', it ensures your codebase remains type-safe and compliant with strict linting rules while validating all changes against existing tests.
Key Features
010 GitHub stars
02Automatic detection of Pyright and Mypy configurations
03Zero-suppression policy (no # type: ignore used)
04Iterative error resolution until zero type errors remain
05Post-fix verification via automated test execution
06Smart type narrowing and type guard implementation
Use Cases
01Resolving complex Union or None-type errors in large projects
02Ensuring Pydantic models align with actual data structures
03Refactoring legacy codebases to pass strict type-checking requirements