Make ReviewUI generic for typing purposes.
Review Request #13696 — Created April 4, 2024 and submitted
This change adds generic typing for the ReviewUI class, allowing us to
specify in the subclass what the object type, comment type, and
serialized comment type are. This prevents the need for a bunch of
cast
calls in the subclasses.
Ran unit tests.
Summary | ID |
---|---|
4780bc5de7e4922139e18f51c16f02a4bcd559b1 |
Description | From | Last Updated |
---|---|---|
Can we document these and add Version Added? |
chipx86 | |
While you're doing work on these, can you wrap these in ClassVar? |
chipx86 | |
We should probably use Sequence here, unless we want to explicitly return a mutable list. |
chipx86 | |
collections.abc.Iterator doesn't support generics on Python 3.8. |
chipx86 | |
Maybe we should use Sequence for these? |
chipx86 |