From 3ee84ef24094eae62be706108309a5a561095be1 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 15 Feb 2021 01:58:41 -0600 Subject: [PATCH] Stop allowing positional arguments for API.list_subscribers 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 4b2b723..f89d877 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1087,13 +1087,13 @@ class API: @pagination(mode='cursor') @payload('user', list=True) - def list_subscribers(self, *args, **kwargs): + def list_subscribers(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscribers """ return self.request( - 'GET', 'lists/subscribers', *args, endpoint_parameters=( - 'owner_screen_name', 'slug', 'owner_id', 'list_id', 'cursor', - 'count', 'include_entities', 'skip_status' + 'GET', 'lists/subscribers', endpoint_parameters=( + 'list_id', 'slug', 'owner_screen_name', 'owner_id', 'count', + 'cursor', 'include_entities', 'skip_status' ), **kwargs ) -- 2.25.1