Stop allowing positional arguments besides id for API.retweet
authorHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 04:08:48 +0000 (22:08 -0600)
committerHarmon <Harmon758@gmail.com>
Wed, 10 Feb 2021 04:08:48 +0000 (22:08 -0600)
tweepy/api.py

index 6fefefceaec8b4f521c7ca111977a6e25ce3b495..4e3382c4c637f2de22e29e42dd86b64ba9b50182 100644 (file)
@@ -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
         )