Skip to content

chore: Move ListPage from apify_shared #444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Pijukatel
Copy link
Contributor

Description

ListPage is used only here. This will make it possible to render it in docs.

@github-actions github-actions bot added this to the 119th sprint - Tooling team milestone Jul 25, 2025
@github-actions github-actions bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Jul 25, 2025
@Pijukatel Pijukatel added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. and removed t-tooling Issues with this label are in the ownership of the tooling team. labels Jul 25, 2025
@Pijukatel Pijukatel requested a review from vdusek July 25, 2025 09:38
Comment on lines +13 to +27
class ListPage(Generic[T]):
"""A single page of items returned from a list() method."""

#: list: List of returned objects on this page
items: list[T]
#: int: Count of the returned objects on this page
count: int
#: int: The limit on the number of returned objects offset specified in the API call
offset: int
#: int: The offset of the first object specified in the API call
limit: int
#: int: Total number of objects matching the API call criteria
total: int
#: bool: Whether the listing is descending or not
desc: bool
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this is gonna be rendered now, can we use standard docstrings for fields?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants