Add typing structures for the diff viewer context.
Review Request #13666 — Created March 25, 2024 and submitted
The context that's assembled and used to render the diff viewer page
(both the HTML-based UI and the diff context API endpoint) has grown
organically since the very earliest days of Review Board, and is a
pretty big hairy mess. In order to bring at least a little bit of sanity
to it, this change adds typing structures so that type checkers can
verify that we're always assigning things correctly.The only actual change to the content of the context is that we can no
longer end up with non-bool
types for theis_draft_diff
and
is_draft_interdiff
fields.
Ran unit tests.
Summary | ID |
---|---|
eaf2f91109549ee9bfe835fbac9bc42b86f397aa |
Description | From | Last Updated |
---|---|---|
Missing Returns. |
chipx86 | |
Might be a good time to deprecate non-keyword-only arguments. |
chipx86 | |
Can you add Args for these? |
chipx86 | |
If we're not documenting these, we don't need blank lines between them. |
chipx86 | |
Blank line between these. |
chipx86 | |
These can be assertFalse. |
chipx86 |
- Commits:
-
Summary ID 03f29610d7496efc3344e9c8a65d8f07acc4285c eaf2f91109549ee9bfe835fbac9bc42b86f397aa - Diff:
-
Revision 2 (+1398 -216)