• 
      

    Update typing: Optional[...] part 4

    Review Request #15115 — 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 first half of the
    reviews app.

    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 4
    This change updates legacy type hints that use the old `Optional[...]` form to be `(... | None)` instead. This change covers the `reviews` app. 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.
    tzsqrqmtysmmrkutsrwmvluqqzzqxtvq
    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

    david
    Review request changed
    Description:
       

    This change updates legacy type hints that use the old Optional[...] form

    ~   to be (... | None) instead. This change covers the reviews app.

      ~ to be (... | None) instead. This change covers the first half of the
      + reviews app.

       
       

    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.