From 434fd35d76481f0281d62cd83b8da2bd47353e56 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 18 Feb 2021 22:27:41 -0600 Subject: [PATCH] Stop allowing positional arguments for API.search_30_day Stop allowing positional arguments besides label and query for API.search_30_day --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index d398047..44b5cee 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 ) -- 2.25.1