From: Harmon Date: Sun, 14 Feb 2021 06:28:55 +0000 (-0600) Subject: Stop allowing positional arguments for API.destroy_saved_search X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b7afca2ad8f8721b267fd159bc7a2a91d012b15e;p=tweepy.git Stop allowing positional arguments for API.destroy_saved_search Stop allowing positional arguments besides id for API.destroy_saved_search --- diff --git a/tweepy/api.py b/tweepy/api.py index 8b12148..2a46374 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -887,12 +887,10 @@ class API: ) @payload('saved_search') - def destroy_saved_search(self, id, *args, **kwargs): + def destroy_saved_search(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-saved_searches-destroy-id """ - return self.request( - 'POST', f'saved_searches/destroy/{id}', *args, **kwargs - ) + return self.request('POST', f'saved_searches/destroy/{id}', **kwargs) @payload('list') def create_list(self, *args, **kwargs):