From: Harmon Date: Sun, 14 Feb 2021 06:52:54 +0000 (-0600) Subject: Stop allowing positional arguments for API.get_list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=92dc37f1c45b1420c1cdcef0c16843ffffc15aa4;p=tweepy.git Stop allowing positional arguments for API.get_list Also improve endpoint parameters order to match Twitter API documentation --- diff --git a/tweepy/api.py b/tweepy/api.py index 8fe7c4b..72505e1 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -980,12 +980,12 @@ class API: ) @payload('list') - def get_list(self, *args, **kwargs): + def get_list(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-show """ return self.request( - 'GET', 'lists/show', *args, endpoint_parameters=( - 'owner_screen_name', 'owner_id', 'slug', 'list_id' + 'GET', 'lists/show', endpoint_parameters=( + 'list_id', 'slug', 'owner_screen_name', 'owner_id' ), **kwargs )