Modernize hosting service test class.
Review Request #14592 — Created Sept. 4, 2025 and updated
The hosting service specific testcase class provides some neat
utilities, but very little of it had any type hints. This change fleshes
those out, and fixes up a couple issues with some types in the base
hosting service that this exposed. Subclasses of this have been updated
for the new generic.
Ran unit tests.
Summary | ID |
---|---|
pxqtwpvtwtupuropzrunmrwrlnzlyxtv |
Description | From | Last Updated |
---|---|---|
Literal can go in TYPE_CHECKING. |
|
|
We should just import the type we need, but within a TYPE_CHECKING. |
|
|
This should also go in TYPE_CHECKING. |
|
|
This can also go in TYPE_CHECKING. |
|
|
This is in the wrong import group. |
|
|
This is missing docs with a Version Added. |
|
|
Missing the "Instance variables" block. |
|
|
We have a couple of these. Maybe we should TypeAlias it? Or Protocol it, make it match the argument signature … |
|
|
For all these, can we move the ) to the following line so the strings are isolated? More like we … |
|
|
While here, can we convert to keyword arguments? |
|
|
Existing code, but these should not be , optional. |
|
|
Missing a return type. |
|
|
Existing code, but these should not be , optional. |
|
|
Existing code, but these should not be , optional. |
|
|
This should be , optional. |
|
|
These should be , optional. |
|
- Commits:
-
Summary ID pxqtwpvtwtupuropzrunmrwrlnzlyxtv pxqtwpvtwtupuropzrunmrwrlnzlyxtv - Diff:
-
Revision 2 (+1932 -1152)