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

index 09d4c122847b87ee342e2f241e07780650b2896b..5043fb18e7ee6436345aac6c93a446c6e2f23cc8 100644 (file)
@@ -597,11 +597,11 @@ class API:
 
     @pagination(mode='cursor')
     @payload('ids')
-    def friends_ids(self, *args, **kwargs):
+    def friends_ids(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friends-ids
         """
         return self.request(
-            'GET', 'friends/ids', *args, endpoint_parameters=(
+            'GET', 'friends/ids', endpoint_parameters=(
                 'user_id', 'screen_name', 'cursor', 'stringify_ids', 'count'
             ), **kwargs
         )