Contents

django-stubs 4.2.7

0

Mypy stubs for Django

Mypy stubs for Django

Stars: 1440, Watchers: 1440, Forks: 413, Open Issues: 230

The typeddjango/django-stubs repo was created 5 years ago and the last code push was 6 hours ago.
The project is very popular with an impressive 1440 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 230 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.1

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

boto3-stubs 1.34.79

Type annotations for boto3 1.34.79 generated with mypy-boto3-builder 7.23.2