Contents

django-stubs 5.1.0

0

Mypy stubs for Django

Mypy stubs for Django

Stars: 1583, Watchers: 1583, Forks: 438, Open Issues: 216

The typeddjango/django-stubs repo was created 6 years ago and the last code push was Yesterday.
The project is very popular with an impressive 1583 github stars!

How to Install django-stubs

You can install django-stubs using pip

pip install django-stubs

or add it to a project with poetry

poetry add django-stubs

Package Details

Author
Maksim Kurnikov
License
MIT
Homepage
https://github.com/typeddjango/django-stubs
PyPi:
https://pypi.org/project/django-stubs/
GitHub Repo:
https://github.com/typeddjango/django-stubs

Classifiers

No  django-stubs  pypi packages just yet.

Errors

A list of common django-stubs errors.

Code Examples

Here are some django-stubs code examples and snippets.

GitHub Issues

The django-stubs package has 216 open issues on GitHub

  • Fix .filter-kwargs lookup crash during cached runs
  • Cached runs crashes on typechecking .filter-kwargs with IndexError
  • fields type in bulk_update
  • New release
  • Make SomeModel._default_manager return a BaseManager[SomeModel] instead of BaseManager[Model]
  • Make Apps.get_model() return Type[Model]
  • Errors on explicitly typed model fields
  • Changelog for latest releases, consider a changelog file?
  • Support django 4
  • Export Datasource, Driver from gdal
  • Prefetch's to_attr raises "Model" has no attribute "prefetched_field"
  • remove generics from QuerySet type
  • Fix return type of MigrationRecorder.applied_migrations()
  • Add object_list to BaseListView
  • Drop python3.6 support

See more issues on GitHub

Related Packages & Articles

django-split-settings 1.3.2

Organize Django settings into multiple files and directories. Easily override and modify settings. Use wildcards and optional settings files.

boto3-stubs 1.35.39

Type annotations for boto3 1.35.39 generated with mypy-boto3-builder 8.1.2