Stop allowing positional arguments for API.destroy_saved_search
authorHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:28:55 +0000 (00:28 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:28:55 +0000 (00:28 -0600)
Stop allowing positional arguments besides id for API.destroy_saved_search

tweepy/api.py

index 8b12148314e5e6dce2592dfe27f33d72efaae0b1..2a463744f38311933b7aaa58626d74475f6cc0bc 100644 (file)
@@ -887,12 +887,10 @@ class API:
         )
 
     @payload('saved_search')
-    def destroy_saved_search(self, id, *args, **kwargs):
+    def destroy_saved_search(self, id, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id
         """
-        return self.request(
-            'POST', f'saved_searches/destroy/{id}', *args, **kwargs
-        )
+        return self.request('POST', f'saved_searches/destroy/{id}', **kwargs)
 
     @payload('list')
     def create_list(self, *args, **kwargs):