Skip to main content
Version: Next

HasItems

Structural contract for a single page of results from a paginated API endpoint.

Implementations must expose items. They may optionally expose count — the number of items scanned by the API for this page, which can exceed len(items) when filters drop items from the response. The iterator helpers consult count opportunistically via getattr for offset bookkeeping and fall back to len(items) when it is absent.

Index

Properties

Properties

items

items: list[T]
Page Options