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

index 3c79524a100dfb211ca2c28bb81113521147c33d..dd389a549840f259ba1877f4fcdd3efe154b7d56 100644 (file)
@@ -631,11 +631,11 @@ class API:
 
     @pagination(mode='cursor')
     @payload('ids')
-    def friendships_outgoing(self, *args, **kwargs):
+    def friendships_outgoing(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-outgoing
         """
         return self.request(
-            'GET', 'friendships/outgoing', *args, endpoint_parameters=(
+            'GET', 'friendships/outgoing', endpoint_parameters=(
                 'cursor', 'stringify_ids'
             ), **kwargs
         )