Stop allowing positional arguments for API.followers
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 23:47:48 +0000 (17:47 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 23:47:48 +0000 (17:47 -0600)
tweepy/api.py

index 5a22c75d481f8ff86dd1beb0d6539bbc77def48f..a060aab5c3ffbd70d82d4ed162700819e4602ad6 100644 (file)
@@ -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