From 3cd00587cf7a3b92fb64375e0311e03a4c410595 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:37:28 -0600 Subject: [PATCH] Stop allowing positional arguments for API.lists_all Also improve endpoint parameters order to match Twitter API documentation --- tweepy/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ) -- 2.25.1