Add type hints for the diff parsing code.
Review Request #14010 — Created July 3, 2024 and submitted
This updates
reviewboard.diffviewer.parser
to include full type hints,
making it easier to properly implement a diff parser or change diff
parsing logic. This is being done in preparation for additional work for
diff parsers.Several methods have been updated to require keyword-only arguments,
deprecating positional arguments.We also had some parameters that were meant to be removed back in
Review Board 6. We never added deprecation warnings for those changes,
so those have been added, and the deprecations have been pushed to
Review Board 9.
Unit tests pass.
- Change Summary:
-
Added missing blank lines before
return
statements. - Commits:
-
Summary ID 26a76a668cbff05ca02157b64b3b2ec0760e36a7 c38f348987f24e2e88b8eef03283bf97b814c2b8 - Diff:
-
Revision 2 (+690 -260)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.