From b7afca2ad8f8721b267fd159bc7a2a91d012b15e Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:28:55 -0600 Subject: [PATCH] Stop allowing positional arguments for API.destroy_saved_search Stop allowing positional arguments besides id for API.destroy_saved_search --- tweepy/api.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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): -- 2.25.1