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

tweepy/api.py

index 19db1deba6178cd01f1aa4d78a9b6ef60a6bfd2b..79d5678536adf5107f642fbe6f99e99ff02237c3 100644 (file)
@@ -1159,11 +1159,11 @@ class API:
 
     @pagination(mode='next')
     @payload('status', list=True)
-    def search_full_archive(self, label, query, *args, **kwargs):
+    def search_full_archive(self, label, query, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/search/api-reference/premium-search
         """
         return self.request(
-            'GET', f'tweets/search/fullarchive/{label}', query, *args,
+            'GET', f'tweets/search/fullarchive/{label}', query,
             endpoint_parameters=(
                 'query', 'tag', 'fromDate', 'toDate', 'maxResults', 'next'
             ), **kwargs