From 76be2d9cfb2c8437627531ea7cb30047fbfd8355 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:26:18 -0600 Subject: [PATCH] Stop allowing positional arguments for API.create_saved_search Stop allowing positional arguments besides query for API.create_saved_search --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 77a9f8e..9f8143e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -877,12 +877,11 @@ class API: return self.request('GET', f'saved_searches/show/{id}', **kwargs) @payload('saved_search') - def create_saved_search(self, query, *args, **kwargs): + def create_saved_search(self, query, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-create """ return self.request( - 'POST', 'saved_searches/create', query, *args, - endpoint_parameters=( + 'POST', 'saved_searches/create', query, endpoint_parameters=( 'query', ), **kwargs ) -- 2.25.1