mypy-strict-django
Installation
SKILL.md
Mypy Strict Mode with Django
When to Use
- Running
mypy --stricton a Django + Django REST Framework project - Encountering "User | AnonymousUser" type union errors in views
- Getting "import-untyped" warnings for third-party Django packages
- Library stub missing errors (django-allauth, channels, stripe, gemini, nanoid, etc.)
- Protocol definition issues with async methods
- Test file type annotation errors
Instructions
Step 1: Categorize All Errors
Run mypy and group errors by type: