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

index 97b3451b6c4d8b379a67ae071f8885ec9983822b..5b9764b7bbe7efe80ca2f7f059485d926a998126 100644 (file)
@@ -574,11 +574,11 @@ class API:
         )
 
     @payload('friendship')
-    def show_friendship(self, *args, **kwargs):
+    def show_friendship(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-friendships-show
         """
         return self.request(
-            'GET', 'friendships/show', *args, endpoint_parameters=(
+            'GET', 'friendships/show', endpoint_parameters=(
                 'source_id', 'source_screen_name', 'target_id',
                 'target_screen_name'
             ), **kwargs