Bring type annotations for rbtools.api up to date.

Review Request #14454 — Created June 10, 2025 and updated

Information

RBTools
master

Reviewers

This change primarily replaces Optional[] and Union[] with the new
union syntax where appropriate. There's a few additional cleanups
sprinkled in as well.

Ran unit tests.

Summary ID
Bring type annotations for rbtools.api up to date.
This change primarily replaces `Optional[]` and `Union[]` with the new union syntax where appropriate. There's a few additional cleanups sprinkled in as well. Testing Done: Ran unit tests.
090f8c7eac8e4b1c9058d0c0379a1043d3717bfe
Checks run (2 succeeded)
flake8 passed.
JSHint passed.