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