From e7fa800bf0cbe699201c7f3e26ad2e27b4193b6d Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:57:44 -0600 Subject: [PATCH] Stop allowing positional arguments for API.remove_list_member Also improve endpoint parameters order to match Twitter API documentation --- tweepy/api.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index b856644..fd2fedd 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1001,13 +1001,13 @@ class API: ) @payload('list') - def remove_list_member(self, *args, **kwargs): + def remove_list_member(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-members-destroy """ return self.request( - 'POST', 'lists/members/destroy', *args, endpoint_parameters=( - 'screen_name', 'user_id', 'owner_screen_name', 'owner_id', - 'slug', 'list_id' + 'POST', 'lists/members/destroy', endpoint_parameters=( + 'list_id', 'slug', 'user_id', 'screen_name', + 'owner_screen_name', 'owner_id' ), **kwargs ) -- 2.25.1