Stop allowing positional arguments for API.search_30_day
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:27:41 +0000 (22:27 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:27:41 +0000 (22:27 -0600)
Stop allowing positional arguments besides label and query for API.search_30_day

tweepy/api.py

index d398047e46c7f3be98ebdb5c1fa701c24c843b90..44b5cee0e51dc48a47e919c875b207c4aa1156ac 100644 (file)
@@ -1148,12 +1148,11 @@ class API:
 
     @pagination(mode='next')
     @payload('status', list=True)
-    def search_30_day(self, label, query, *args, **kwargs):
+    def search_30_day(self, label, query, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/premium-search
         """
         return self.request(
-            'GET', f'tweets/search/30day/{label}', query, *args,
-            endpoint_parameters=(
+            'GET', f'tweets/search/30day/{label}', query, endpoint_parameters=(
                 'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next'
             ), **kwargs
         )