From: Harmon Date: Sun, 30 Oct 2022 03:24:13 +0000 (-0500) Subject: Document limit and pagination_token parameters for Paginator X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e98ab0211e488c734d1c01c0bf2a2cf4d87c4762;p=tweepy.git Document limit and pagination_token parameters for Paginator --- diff --git a/tweepy/pagination.py b/tweepy/pagination.py index b30c9e6..004d22c 100644 --- a/tweepy/pagination.py +++ b/tweepy/pagination.py @@ -10,7 +10,11 @@ from tweepy.client import Response class Paginator: - """:class:`Paginator` can be used to paginate for any :class:`Client` + """Paginator( \ + self, method, *args, limit=inf, pagination_token=None, **kwargs \ + ) + + :class:`Paginator` can be used to paginate for any :class:`Client` methods that support pagination .. note:: @@ -28,6 +32,10 @@ class Paginator: :class:`Client` method to paginate for args Positional arguments to pass to ``method`` + limit + Maximum number of requests to make to the API + pagination_token + Pagination token to start pagination with kwargs Keyword arguments to pass to ``method`` """