django-stubs contains type stubs and a custom mypy plugin to provide more
precise static types and type inference for Django framework. Django uses some
Python "magic" that makes having precise types for some code patterns
problematic. This is why we need this project. The final goal is to be able to
get precise types for most common patterns.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-dj61-django-stubs-ext listed in the above command, you can pick from the names under the Packages section.
port moved here from www/py-dj60-django-stubs-ext on 2026-10-04 REASON: Has expired: 6.0.9 is supposed to be the last 6.0.x release, migrate to www/py-dj61-django-stubs-ext
www/py-dj61-django-stubs-ext: New port: Monkey-patching and extensions for
django-stubs
django-stubs contains type stubs and a custom mypy plugin to provide more
precise static types and type inference for Django framework. Django uses some
Python "magic" that makes having precise types for some code patterns
problematic. This is why we need this project. The final goal is to be able to
get precise types for most common patterns.
WWW: https://github.com/typeddjango/django-stubs