{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks"}],"enrichment":{"capability":"Provides runtime monkey-patching extensions for django-stubs to enable generic Django class type hints without requiring mypy as a runtime dependency.","skillfed_tags":["django-typing","type-hints","monkey-patching"],"use_cases":["Enable type hints for Django generic classes in projects using django-stubs without mypy as a runtime dependency.","Support proper typing of Django QuerySet and Manager generics in IDE autocomplete and type checking.","Ensure compatibility across multiple Django versions by applying version-specific patches at runtime.","Integrate type safety into existing Django projects that rely on django-stubs for static type checking."],"what_it_does":"django-stubs-ext is a companion package to django-stubs that applies runtime monkey-patching to Django classes to support generic type hints. Django's built-in classes don't define the `__class_getitem__` method needed for proper typing with generic syntax, so this package adds that method at runtime. The package is designed to be called once during Django application initialization, typically in settings, and intelligently patches only the features needed for your specific Django version.\n\nThe package exists because django-stubs itself is a type-stub-only library that can't perform runtime modifications. By splitting the runtime extensions into a separate package, applications using django-stubs avoid needing mypy as a production dependency. The monkey-patching is minimal and safe\u2014it adds a `__class_getitem__` method that returns the class itself, enabling type checkers to understand generic Django class usage without breaking runtime behavior.","worth_installing":"Yes. If you use django-stubs for type checking, this package is essential\u2014it's a lightweight, actively maintained companion that enables the type hints django-stubs provides to work correctly at runtime. Install it alongside django-stubs and call monkeypatch() once in your settings. No known vulnerabilities, permissive license, and minimal dependencies make it a safe addition."},"id":"django-stubs-ext","links":{"html":"https://skillfed.io/packages/django-stubs-ext","md":"https://skillfed.io/packages/django-stubs-ext.md","pypi":"https://pypi.org/project/django-stubs-ext/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-12","license_spdx":"MIT","license_treatment":"permissive","name":"django-stubs-ext","python_support":"supports_current","summary":"Monkey-patching and extensions for django-stubs"},"popularity":{"monthly_downloads":12136688,"position":1339,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"6.1.0"}
