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

index b8203fcfff88a98a83c3764b5c34f091da59ea7f..4dc06402827d55df03a6743136895cae73d743b7 100644 (file)
@@ -865,10 +865,10 @@ class API:
         )
 
     @payload('saved_search', list=True)
-    def saved_searches(self, *args, **kwargs):
+    def saved_searches(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-saved_searches-list
         """
-        return self.request('GET', 'saved_searches/list', *args, **kwargs)
+        return self.request('GET', 'saved_searches/list', **kwargs)
 
     @payload('saved_search')
     def get_saved_search(self, saved_search_id, *args, **kwargs):