From bb934fc247892d83ce69511311c07bed2b170412 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 29 Oct 2022 22:26:13 -0500 Subject: [PATCH] Document limit and pagination_token parameters for AsyncPaginator --- tweepy/asynchronous/pagination.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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`` """ -- 2.25.1