python-mypy
Installation
SKILL.md
Python Mypy Type Checking Skill
This skill automatically activates when writing Python code to ensure proper type annotations and compatibility with Mypy static type checking.
Core Principles
- Type Safety: Catch type errors before runtime
- Gradual Typing: Start with critical paths, expand coverage over time
- Strict Mode: Enable strict checks for new code
- CI Integration: Run Mypy in continuous integration
Type Annotation Patterns
Function Signatures
from typing import Optional
from collections.abc import Sequence