From: Harmon Date: Fri, 12 Feb 2021 23:47:48 +0000 (-0600) Subject: Stop allowing positional arguments for API.followers X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c6ab5a0882651802a8a2fcf8c9f8300321415455;p=tweepy.git Stop allowing positional arguments for API.followers --- diff --git a/tweepy/api.py b/tweepy/api.py index 5a22c75..a060aab 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -653,11 +653,11 @@ class API: @pagination(mode='cursor') @payload('user', list=True) - def followers(self, *args, **kwargs): + def followers(self, **kwargs): """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-followers-list """ return self.request( - 'GET', 'followers/list', *args, endpoint_parameters=( + 'GET', 'followers/list', endpoint_parameters=( 'user_id', 'screen_name', 'cursor', 'count', 'skip_status', 'include_user_entities' ), **kwargs