Add typing for diff opcodes.
Review Request #14418 — Created May 2, 2025 and updated — Latest diff uploaded
This change updates diff opcodes to use explicitly typed tuples. The
opcodes created by theDiffer
implementation have a tag and ranges,
and then the opcode generator adds an additional metadata field. In the
interest of avoiding any changes, we therefore have separate definitions
for both steps.
- Did a bunch of smoke testing of diff generation and saw that
everything still worked correctly. - Ran unit tests.
reviewboard/diffviewer/chunk_generator.py |
---|
reviewboard/diffviewer/opcode_generator.py |
---|