From: Harmon Date: Fri, 19 Feb 2021 04:30:06 +0000 (-0600) Subject: Stop allowing positional arguments for API.search_full_archive X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=44391bcf55da7fb50cf077510ee94e849599b6cd;p=tweepy.git Stop allowing positional arguments for API.search_full_archive Stop allowing positional arguments besides label and query for API.search_full_archive --- diff --git a/tweepy/api.py b/tweepy/api.py index 19db1de..79d5678 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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