Modernize reviewboard.hostingsvcs.base.paginator.

Review Request #13182 — Created Aug. 2, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

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.

Changes between revision 1 and 2

orig
1
2

Commits

Summary ID Author
Modernize reviewboard.hostingsvcs.base.paginator.
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.
bfde81ecf2a444a70a7f70519300ce45f8680267 Christian Hammond
Modernize reviewboard.hostingsvcs.base.paginator.
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.
a991eff59000a70a8edad235300dd1f7a8dbd5b8 Christian Hammond
reviewboard/hostingsvcs/base/paginator.py
Loading...