From: Harmon Date: Sun, 14 Feb 2021 06:34:37 +0000 (-0600) Subject: Stop allowing positional arguments for API.destroy_list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4b2cfc486836faa749248af1fd6dd0200202c62e;p=tweepy.git Stop allowing positional arguments for API.destroy_list --- diff --git a/tweepy/api.py b/tweepy/api.py index 4edf6f1..ae1e5fb 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -903,11 +903,11 @@ class API: ) @payload('list') - def destroy_list(self, *args, **kwargs): + def destroy_list(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-destroy """ return self.request( - 'POST', 'lists/destroy', *args, endpoint_parameters=( + 'POST', 'lists/destroy', endpoint_parameters=( 'owner_screen_name', 'owner_id', 'list_id', 'slug' ), **kwargs )