From 6c0fdf5d6955c5e26beb18f11142cde7a3268415 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sun, 14 Feb 2021 00:44:04 -0600 Subject: [PATCH] Stop allowing positional arguments for API.lists_ownerships --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.25.1