From e6965fa7847782ca5e4073a21cc3cd30752eeafb Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 11 Feb 2021 22:10:05 -0600 Subject: [PATCH] Stop allowing positional arguments for API.friends --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 126f160..f7fe114 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -608,11 +608,11 @@ class API: @pagination(mode='cursor') @payload('user', list=True) - def friends(self, *args, **kwargs): + def friends(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-list """ return self.request( - 'GET', 'friends/list', *args, endpoint_parameters=( + 'GET', 'friends/list', endpoint_parameters=( 'user_id', 'screen_name', 'cursor', 'count', 'skip_status', 'include_user_entities' ), **kwargs -- 2.25.1