From 0bd0292fbe7cdd7b1b6f7a43906ac59ffb97ed72 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 9 Feb 2021 22:14:17 -0600 Subject: [PATCH] Stop allowing positional arguments besides id for API.retweets --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index faed176..e0f0238 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -422,12 +422,11 @@ class API: ) @payload('status', list=True) - def retweets(self, id, *args, **kwargs): + def retweets(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets-id """ return self.request( - 'GET', f'statuses/retweets/{id}', *args, - endpoint_parameters=( + 'GET', f'statuses/retweets/{id}', endpoint_parameters=( 'count', 'trim_user' ), **kwargs ) -- 2.25.1