Stop allowing positional arguments for API.retweets_of_me
authorHarmon <Harmon758@gmail.com>
Mon, 8 Feb 2021 08:45:23 +0000 (02:45 -0600)
committerHarmon <Harmon758@gmail.com>
Mon, 8 Feb 2021 08:45:23 +0000 (02:45 -0600)
tweepy/api.py

index fdd6f55dda632e6c3bbecc44e742e00b85a0c188..2a3b9931722786edea9589aa8ceeb1e5da3d4a12 100644 (file)
@@ -295,11 +295,11 @@ class API:
 
     @pagination(mode='id')
     @payload('status', list=True)
-    def retweets_of_me(self, *args, **kwargs):
+    def retweets_of_me(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-retweets_of_me
         """
         return self.request(
-            'GET', 'statuses/retweets_of_me', *args, endpoint_parameters=(
+            'GET', 'statuses/retweets_of_me', endpoint_parameters=(
                 'since_id', 'max_id', 'count'
             ), **kwargs
         )