Modernize reviewboard.hostingsvcs.base.paginator.
Review Request #13182 — Created Aug. 2, 2023 and submitted
This adds typing and docs to the hosting service paginator code, helping
implementations return the correct results from paginators. It also adds
some assertions to help ensure some state is set correctly when
accessed.The paginators are generics, allowing the page data type and item types
to be provided to help with consuming expected values in a type-safe
way.
All unit tests pass.
- Change Summary:
-
Removed unused imports.
- Commits:
-
Summary ID bfde81ecf2a444a70a7f70519300ce45f8680267 a991eff59000a70a8edad235300dd1f7a8dbd5b8 - Diff:
-
Revision 2 (+662 -248)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.