From: Harmon Date: Sun, 14 Feb 2021 06:44:04 +0000 (-0600) Subject: Stop allowing positional arguments for API.lists_ownerships X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=6c0fdf5d6955c5e26beb18f11142cde7a3268415;p=tweepy.git Stop allowing positional arguments for API.lists_ownerships --- diff --git a/tweepy/api.py b/tweepy/api.py index fbca4fe..5b34c4f 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -947,11 +947,11 @@ class API: @pagination(mode='cursor') @payload('list', list=True) - def lists_ownerships(self, *args, **kwargs): + def lists_ownerships(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/get-lists-ownerships """ return self.request( - 'GET', 'lists/ownerships', *args, endpoint_parameters=( + 'GET', 'lists/ownerships', endpoint_parameters=( 'user_id', 'screen_name', 'count', 'cursor' ), **kwargs )