From: Harmon Date: Sun, 14 Feb 2021 06:37:28 +0000 (-0600) Subject: Stop allowing positional arguments for API.lists_all X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=3cd00587cf7a3b92fb64375e0311e03a4c410595;p=tweepy.git Stop allowing positional arguments for API.lists_all Also improve endpoint parameters order to match Twitter API documentation --- diff --git a/tweepy/api.py b/tweepy/api.py index 7e71cdc..ea04d5c 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -924,12 +924,12 @@ class API: ) @payload('list', list=True) - def lists_all(self, *args, **kwargs): + def lists_all(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-list """ return self.request( - 'GET', 'lists/list', *args, endpoint_parameters=( - 'screen_name', 'user_id', 'reverse' + 'GET', 'lists/list', endpoint_parameters=( + 'user_id', 'screen_name', 'reverse' ), **kwargs )