From: Harmon Date: Fri, 12 Feb 2021 04:10:05 +0000 (-0600) Subject: Stop allowing positional arguments for API.friends X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e6965fa7847782ca5e4073a21cc3cd30752eeafb;p=tweepy.git Stop allowing positional arguments for API.friends --- 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