Modernize djblets/auth.

Review Request #13968 — Created June 10, 2024 and updated

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.

Summary ID
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.
b9ea0aa76462b625872027672df0d8a5acf6aec8
Description From Last Updated

Can you add a Raises section in the docs while here.

maubinmaubin

Same here.

maubinmaubin
david
maubin
  1. 
      
  2. djblets/auth/ratelimit.py (Diff revision 2)
     
     
    Show all issues

    Can you add a Raises section in the docs while here.

  3. djblets/auth/ratelimit.py (Diff revision 2)
     
     
    Show all issues

    Same here.

  4. 
      
david
Review request changed
Commits:
Summary ID
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
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.
b9ea0aa76462b625872027672df0d8a5acf6aec8

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
maubin
  1. Ship It!
  2.