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