Add types and require keyword-only args for PatchAuthor and PatchResult.

Review Request #13965 — Created June 8, 2024 and submitted — Latest diff uploaded

Information

RBTools
release-5.x

Reviewers

In preparation for upcoming work, we've made a couple future-proofing
changes for PatchAuthor and PatchResult.

Both classes now take keyword-only arguments, rather than positional
arguments. Callers can continue to pass in positional arguments for now,
but this is deprecated and will be removed in RBTools 7. The RBTools
codebase already passes in all arguments as keywords.

They also now provide type hints for the attributes and the constructor
methods.

Unit tests pass.

Commits

Files