Stop allowing positional arguments for API.destroy_list
authorHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:34:37 +0000 (00:34 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:34:37 +0000 (00:34 -0600)
tweepy/api.py

index 4edf6f1ee9a18977ab98ad86245f5267419b2bcd..ae1e5fb22788cd661df4c9b61b2dabca7c54e4b6 100644 (file)
@@ -903,11 +903,11 @@ class API:
         )
 
     @payload('list')
-    def destroy_list(self, *args, **kwargs):
+    def destroy_list(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy
         """
         return self.request(
-            'POST', 'lists/destroy', *args, endpoint_parameters=(
+            'POST', 'lists/destroy', endpoint_parameters=(
                 'owner_screen_name', 'owner_id', 'list_id', 'slug'
             ), **kwargs
         )