From: Harmon Date: Mon, 15 Feb 2021 07:58:41 +0000 (-0600) Subject: Stop allowing positional arguments for API.list_subscribers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3ee84ef24094eae62be706108309a5a561095be1;p=tweepy.git Stop allowing positional arguments for API.list_subscribers Also improve endpoint parameters order to match Twitter API documentation --- 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 )