{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Provides type stubs and a mypy plugin to enable precise static type checking for Django code, handling Django's dynamic patterns that would otherwise confuse type checkers.","skillfed_tags":["type-checking","mypy-plugin"],"use_cases":["Enable mypy to type-check Django model definitions, catching errors in field declarations and Meta class configurations before runtime.","Provide type hints for QuerySet and Manager operations so IDE autocomplete and type checkers understand query results and method chains.","Validate custom database routers and other Django components that inherit from typed base classes.","Catch type errors in Django views and forms by giving type checkers knowledge of Django's request/response and form field types.","Use TypedModelMeta to enforce correct types on model Meta attributes like ordering and constraints."],"what_it_does":"django-stubs bridges the gap between Django's dynamic runtime behavior and static type checkers by providing type stubs and a custom mypy plugin. Django uses Python \"magic\" patterns that make precise type inference difficult; this package adds explicit type information so mypy can understand model fields, managers, querysets, and other framework patterns correctly.\n\nThe package is installed as a development dependency and does not affect runtime behavior\u2014it only enhances the mypy type-checking process. It supports mypy with full advanced features, and provides basic support for pyright, pyrefly, and other type checkers. Configuration is minimal: add the plugin to your mypy config and specify your Django settings module, and type checking will immediately become more precise for common Django patterns.","worth_installing":"Yes. If you use Django and mypy, this is essential. It transforms mypy from a tool that struggles with Django's dynamic patterns into one that catches real errors in model definitions, querysets, and views. The package is actively maintained, has no known vulnerabilities, and is permissively licensed. Install it as a development dependency with no runtime cost."},"id":"django-stubs","links":{"html":"https://skillfed.io/packages/django-stubs","md":"https://skillfed.io/packages/django-stubs.md","pypi":"https://pypi.org/project/django-stubs/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":"MIT","license_treatment":"permissive","name":"django-stubs","python_support":"supports_current","summary":"Mypy stubs for Django"},"popularity":{"monthly_downloads":11148392,"position":1414,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"6.1.0"}
