{"categories":[{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Provides PEP-484 type stubs for Django REST Framework to enable mypy static type checking of DRF code.","skillfed_tags":["type-checking","mypy-plugin"],"use_cases":["Catch type errors in CI/CD before deployment by running mypy on code using Django REST Framework.","Get IDE autocomplete and type hints when writing custom methods and validators.","Ensure serializer subclasses correctly type-hint their related model class to prevent Any inference.","Validate that view methods receive and return the correct types.","Migrate a Django REST Framework codebase toward full type safety incrementally."],"what_it_does":"djangorestframework-stubs is a collection of type stubs that teach mypy how to understand Django REST Framework's type signatures. It bridges the gap between DRF's dynamic nature and Python's static type system, allowing you to catch type errors at development time rather than runtime.\n\nThe package works by providing stub files (.pyi) that describe DRF's public API in terms mypy understands, plus a mypy plugin that enhances inference for common patterns. You install it alongside your project's type-checking setup, configure mypy to load the plugin, and then annotate your code with generic type parameters to get precise type information for model instances and method signatures. It depends on django-stubs, typing-extensions, and types-pyyaml.","worth_installing":"Yes, if you use Django REST Framework and mypy for type checking. The package is actively maintained, has no known vulnerabilities, and low install friction. It's essential for teams that want static type safety in DRF projects. Install it as part of your development dependencies and configure the mypy plugin in your mypy.ini."},"id":"djangorestframework-stubs","links":{"html":"https://skillfed.io/packages/djangorestframework-stubs","md":"https://skillfed.io/packages/djangorestframework-stubs.md","pypi":"https://pypi.org/project/djangorestframework-stubs/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":"MIT","license_treatment":"permissive","name":"djangorestframework-stubs","python_support":"supports_current","summary":"PEP-484 stubs for django-rest-framework"},"popularity":{"monthly_downloads":6340396,"position":1926,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.18.0"}
