Modernize djblets/auth.

Review Request #13968 — Created June 10, 2024 and submitted — Latest diff uploaded

Information

Djblets
release-5.x

Reviewers

This change makes several modernizations for the auth app:

  • Add `from future import annotations' to everything.
  • Add type hints.
  • Fix up a few small type issues that were exposed by type hints.
  • Add in missing docstrings.

Ran unit tests.

Diff Revision 2

This is not the most recent revision of the diff. The latest diff is revision 5. See what's changed.

orig
1
2
3
4
5

Commits

First Last Summary ID Author
Modernize djblets/auth.
This change makes several modernizations for the auth app: - Add `from __future__ import annotations' to everything. - Add type hints. - Fix up a few small type issues that were exposed by type hints. - Add in missing docstrings. Testing Done: Ran unit tests.
777c7e4e4566c1fea71e922922e28c4af4873253 David Trowbridge
djblets/auth/apps.py
djblets/auth/forms.py
djblets/auth/ratelimit.py
djblets/auth/signals.py
djblets/auth/urls.py
djblets/auth/util.py
djblets/auth/views.py
djblets/auth/tests/__init__.py
djblets/auth/tests/test_ratelimit.py
djblets/auth/tests/test_registration_form.py
djblets/auth/tests/test_util.py
djblets/auth/tests/test_views.py
Loading...