• 
      

    Update typing: Optional[...] part 1

    Review Request #15112 — Created June 12, 2026 and updated

    Information

    Review Board
    release-9.x

    Reviewers

    This change updates legacy type hints that use the old Optional[...] form
    to be (... | None) instead. This change covers the accounts, actions,
    attachments, and certs apps.

    Because I want to keep this tightly focused and easy to review, this
    does not make any changes to other legacy type hints, documentation,
    etc., even within the changed lines. Those will come in future changes.

    Ran unit tests.

    Summary ID
    Update typing: Optional[...] part 1
    This change updates legacy type hints that use the old `Optional[...]` form to be `(... | None)` instead. This change covers the `accounts`, `actions`, `attachments`, and `certs` apps. Because I want to keep this tightly focused and easy to review, this does not make any changes to other legacy type hints, documentation, etc., even within the changed lines. Those will come in future changes. Testing Done: Ran unit tests.
    qvqtuxtpoywxzsqunytkzzxtmqtvuvql
    Description From Last Updated

    'typing.Union' imported but unused Column: 1 Error code: F401

    reviewbot reviewbot
    Checks run (1 failed, 1 succeeded)
    flake8 failed.
    JSHint passed.

    flake8