From 178d7193c08452f4218aa8a1e0b069b6b72f23e3 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:45:30 -0600 Subject: [PATCH] Stop allowing positional arguments for API.lists_subscriptions 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 5b34c4f..c96b6ff 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -958,12 +958,12 @@ class API: @pagination(mode='cursor') @payload('list', list=True) - def lists_subscriptions(self, *args, **kwargs): + def lists_subscriptions(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-subscriptions """ return self.request( - 'GET', 'lists/subscriptions', *args, endpoint_parameters=( - 'screen_name', 'user_id', 'cursor', 'count' + 'GET', 'lists/subscriptions', endpoint_parameters=( + 'user_id', 'screen_name', 'count', 'cursor' ), **kwargs ) -- 2.25.1