Stop allowing positional arguments for API.friends
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 04:10:05 +0000 (22:10 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 04:10:05 +0000 (22:10 -0600)
tweepy/api.py

index 126f16078b44d4bcee1d3311f0df84fc3f3bffec..f7fe11462ca2687cba7d4937a0a0aee4655f1ea1 100644 (file)
@@ -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