You are here: Home / LBN / Up2date / Business / BastionLinux 36 / python3-django-stubs-ext-5.2.2-1.lbn36.noarch

python3-django-stubs-ext-5.2.2-1.lbn36.noarch

Package Attributes
RPM  python3-django-stubs-ext-5.2.2-1.lbn36.noarch.rpm Architecture  noarch Size  26286 Created  2025/08/27 10:54:22 UTC
Package Specification
Summary Monkey-patching and extensions for django-stubs
Group Unspecified
License ZPL
Home Page https://pypi.org/project/django-stubs-ext
Description

Extensions and monkey-patching for django-stubs

This package contains extensions and monkey-patching functions for the django-stubs package. Certain features of django-stubs (i.e. generic django classes that don't define the __class_getitem__ method) require runtime monkey-patching, which can't be done with type stubs. These extensions were split into a separate package so library consumers don't need mypy as a runtime dependency (#526). Installation pip install django-stubs-ext

Usage In your Django application, use the following code: import django_stubs_ext

django_stubs_ext.monkeypatch()

This only needs to be called once, so the call to monkeypatch should be placed in your top-level settings. Real-life example can be found here. Version compatibility Since django-stubs supports multiple Django versions, this package takes care to only monkey-patch the features needed by your django version, and decides which features to patch at runtime. This is completely safe, as (currently) w

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(FileDigests)  
Provides
python-django-stubs-ext
python3-django-stubs-ext
python3.10-django-stubs-ext
python3.10dist(django-stubs-ext)
python3dist(django-stubs-ext)
Obsoletes
python-django-stubs-ext

Document Actions