From: Harmon Date: Sun, 30 Oct 2022 03:26:13 +0000 (-0500) Subject: Document limit and pagination_token parameters for AsyncPaginator X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bb934fc247892d83ce69511311c07bed2b170412;p=tweepy.git Document limit and pagination_token parameters for AsyncPaginator --- diff --git a/tweepy/asynchronous/pagination.py b/tweepy/asynchronous/pagination.py index bd2d9c1..3442470 100644 --- a/tweepy/asynchronous/pagination.py +++ b/tweepy/asynchronous/pagination.py @@ -10,7 +10,11 @@ from tweepy.client import Response class AsyncPaginator: - """:class:`AsyncPaginator` can be used to paginate for any + """AsyncPaginator( \ + self, method, *args, limit=inf, pagination_token=None, **kwargs \ + ) + + :class:`AsyncPaginator` can be used to paginate for any :class:`AsyncClient` methods that support pagination .. note:: @@ -28,6 +32,10 @@ class AsyncPaginator: :class:`AsyncClient` 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`` """