From: Harmon Date: Wed, 10 Feb 2021 04:08:48 +0000 (-0600) Subject: Stop allowing positional arguments besides id for API.retweet X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4f7be886e806c3f61eaaff48827c5c8d1e517fe8;p=tweepy.git Stop allowing positional arguments besides id for API.retweet --- diff --git a/tweepy/api.py b/tweepy/api.py index 6fefefc..4e3382c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -402,11 +402,11 @@ class API: ) @payload('status') - def retweet(self, id, *args, **kwargs): + def retweet(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-retweet-id """ return self.request( - 'POST', f'statuses/retweet/{id}', *args, endpoint_parameters=( + 'POST', f'statuses/retweet/{id}', endpoint_parameters=( 'trim_user', ), **kwargs )