Stop allowing positional arguments for API.create_saved_search
authorHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:26:18 +0000 (00:26 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 14 Feb 2021 06:26:18 +0000 (00:26 -0600)
Stop allowing positional arguments besides query for API.create_saved_search

tweepy/api.py

index 77a9f8e663089ac902a40ca2a27a9ab374ab4ead..9f8143eeffdc92d538b5593fd99b17d9ac57c913 100644 (file)
@@ -877,12 +877,11 @@ class API:
         return self.request('GET', f'saved_searches/show/{id}', **kwargs)
 
     @payload('saved_search')
-    def create_saved_search(self, query, *args, **kwargs):
+    def create_saved_search(self, query, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-create
         """
         return self.request(
-            'POST', 'saved_searches/create', query, *args,
-            endpoint_parameters=(
+            'POST', 'saved_searches/create', query, endpoint_parameters=(
                 'query',
             ), **kwargs
         )