• 
      

    Fix up all other imports, part 1.

    Review Request #15143 — Created June 29, 2026 and updated

    Information

    Review Board
    release-9.x

    Reviewers

    Now that all our type hints have been updated to modern formats, this
    change goes through and fixes up our import blocks. This includes removing
    unused imports, moving things into TYPE_CHECKING blocks where
    appropriate, and fixing sections/sorting. This change covers the
    accounts, actions, admin, and attachments modules.

    Ran unit tests.

    Summary ID
    Fix up all other imports, part 1.
    Now that all our type hints have been updated to modern formats, this change goes through and fixes up our import blocks. This includes removing unused imports, moving things into `TYPE_CHECKING` blocks where appropriate, and fixing sections/sorting. This change covers the `accounts`, `actions`, `admin`, and `attachments` modules. Testing Done: Ran unit tests.
    tklpnvvskpkqmwqmzuwnkwqzompypopp
    Description From Last Updated

    Missing a trailing comma.

    chipx86 chipx86

    TextLexer should be before guess_lexer_for_filename.

    chipx86 chipx86
    chipx86
    1. 
        
    2. Show all issues

      Missing a trailing comma.

    3. reviewboard/attachments/mimetypes.py (Diff revision 1)
       
       
      Show all issues

      TextLexer should be before guess_lexer_for_filename.

    4. 
        
    david
    Review request changed
    Commits:
    Summary ID
    Fix up all other imports, part 1.
    Now that all our type hints have been updated to modern formats, this change goes through and fixes up our import blocks. This includes removing unused imports, moving things into `TYPE_CHECKING` blocks where appropriate, and fixing sections/sorting. This change covers the `accounts`, `actions`, `admin`, and `attachments` modules. Testing Done: Ran unit tests.
    tklpnvvskpkqmwqmzuwnkwqzompypopp
    Fix up all other imports, part 1.
    Now that all our type hints have been updated to modern formats, this change goes through and fixes up our import blocks. This includes removing unused imports, moving things into `TYPE_CHECKING` blocks where appropriate, and fixing sections/sorting. This change covers the `accounts`, `actions`, `admin`, and `attachments` modules. Testing Done: Ran unit tests.
    tklpnvvskpkqmwqmzuwnkwqzompypopp

    Checks run (2 succeeded)

    flake8 passed.
    JSHint passed.