typeddjango/django-stubs
PEP-484 stubs for Django observed · 2026-08-28
Health v2 · maintenance only
98/100
- Activity 99
- Release rhythm 97
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 22.5
- age_days: 2957
- days_rel: 21
- days_push: 8
- n_releases_24m: 25
Adoption not part of the score
1970 stars · 564 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A collection of PEP-484/PEP-561 type stubs plus a custom mypy plugin that provides precise static typing and type inference for the Django framework. It works with mypy (full support) and offers basic support for pyright, pyrefly, and ty.
Use cases
- add static type checking to a Django project with mypy
- get accurate type inference for Django ORM querysets and models
- type-check Django settings, managers, and class-based views
- catch type errors in Django code before runtime
- configure mypy plugin for a Django settings module
When to choose
- you use Django with mypy and want precise types for Django's 'magic' patterns
- you want CI-checked stubs with clear Django/mypy/Python version compatibility
- you want a maintained, MIT-licensed typing solution for Django
When to avoid
- your project does not use Django
- you rely primarily on pyright or another checker needing full stub fidelity (support is basic)
- you use a Django or mypy version outside the supported compatibility matrix
Facets
library · maturity active
type-system developer-tools web-development developer-tools programming-languages python django mypy type-stubs static-type-checking pep-561
2 sources
- readme: https://github.com/typeddjango/django-stubs · fetched 2026-08-28 · df49fd55ec2f
- registry_pypi: https://pypi.org/pypi/django-stubs/json · fetched 2026-08-29 · 2d280202d48f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| typeddjango/django-stubs | main | 98 |
For agents
markdown · JSON · MCP: product_card(name="typeddjango/django-stubs")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem