Activate enhanced typing for Django using django-stubs-ext.

Review Request #14031 — Created July 12, 2024 and submitted — Latest diff uploaded

Information

Review Board
release-7.x

Reviewers

django-stubs provides an extension for mypy that adds enhanced
typing for Django, including correct handling of model fields. This
change activates the plugin, giving us better typing by default.

We also now specify the version of django-stubs we want to depend on.

Verified that the type checker was happy with several of the models
we have in the codebase.

Commits

Files