Add typing for diff opcodes.
Review Request #14418 — Created May 2, 2025 and submitted
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.
Summary | ID |
---|---|
f8ad232f1ebd19142135457de29d0b3156da9519 |
Description | From | Last Updated | ||
---|---|---|---|---|
'typing.Any' imported but unused Column: 1 Error code: F401 |
![]() |
|||
While here, can you put these in parens? |
|
|||
Module path is missing a .. |
|
|||
Can we put that back in alphabetical order? |
|
|||
For this case, I'm pretty sure a tuple is actually faster. A set doesn't buy us anything. Especially constructed every … |
|
|||
While we're cleaning this up, can we pull out groups, inserts, removes, and differ into local variables, so we don't … |
|
|||
Same note about the tuple vs. set. |
|
|||
Same as above. |
|
|||
Same as above. |
|
|||
There are no open issues |
- Commits:
-
Summary ID 946fe9dc79d2726d896130feeb7fcbd2faf57c7d 6961dc9470b3655bda576024c5e1c517818f1aa3 - Diff:
-
Revision 2 (+818 -266)
Checks run (2 succeeded)
- Commits:
-
Summary ID 6961dc9470b3655bda576024c5e1c517818f1aa3 f79f187458dcc42cf79371d2bc4670665d895ff8 - Diff:
-
Revision 3 (+824 -266)
Checks run (2 succeeded)
- Commits:
-
Summary ID f79f187458dcc42cf79371d2bc4670665d895ff8 f8ad232f1ebd19142135457de29d0b3156da9519 - Diff:
-
Revision 4 (+838 -270)