Modernize djblets/auth.
Review Request #13968 — Created June 10, 2024 and submitted — Latest diff uploaded
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
Files
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 |
---|