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

index 2415d3f80a94cccd0b0cd13ca7aec9046292f73d..d07c7e41ce061d500528310212fcb72832996043 100644 (file)
@@ -392,11 +392,11 @@ class API:
         )
 
     @payload('status')
-    def destroy_status(self, id, *args, **kwargs):
+    def destroy_status(self, id, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-destroy-id
         """
         return self.request(
-            'POST', f'statuses/destroy/{id}', *args, endpoint_parameters=(
+            'POST', f'statuses/destroy/{id}', endpoint_parameters=(
                 'trim_user',
             ), **kwargs
         )