From 6d3b7f259bb547eef47d6212fe4b3379b1a96586 Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 11 Feb 2021 22:12:50 -0600 Subject: [PATCH] Stop allowing positional arguments for API.friendships_incoming --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 091a51c..757f909 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -620,11 +620,11 @@ class API: @pagination(mode='cursor') @payload('ids') - def friendships_incoming(self, *args, **kwargs): + def friendships_incoming(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-incoming """ return self.request( - 'GET', 'friendships/incoming', *args, endpoint_parameters=( + 'GET', 'friendships/incoming', endpoint_parameters=( 'cursor', 'stringify_ids' ), **kwargs ) -- 2.25.1