Do some modernization in advance of binary file support for rbt patch.

Review Request #14713 — Created Nov. 28, 2025 and updated

Information

RBTools
master

Reviewers

This change modernizes type annotations, syntax, and docs within the
patch command implementation, along with the rbtools.diffs.patches and
rbtools.diffs.patcher modules.

Ran unit tests.

Summary ID
Do some modernization in advance of binary file support for rbt patch.
This change modernizes type annotations, syntax, and docs within the patch command implementation, along with the `rbtools.diffs.patches` and `rbtools.diffs.patcher` modules. Testing Done: Ran unit tests.
nxupvqrnzspstmtuwqkmqnwqrylwwwxl
Checks run (2 succeeded)
flake8 passed.
JSHint passed.