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

index 36ba1e2c21c88a2dacabd427a9f4ee02c369d3b5..2deb905bf190d08b342d191030f3e236c6c47283 100644 (file)
@@ -284,11 +284,11 @@ class API:
 
     @pagination(mode='id')
     @payload('status', list=True)
-    def mentions_timeline(self, *args, **kwargs):
+    def mentions_timeline(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-mentions_timeline
         """
         return self.request(
-            'GET', 'statuses/mentions_timeline', *args, endpoint_parameters=(
+            'GET', 'statuses/mentions_timeline', endpoint_parameters=(
                 'since_id', 'max_id', 'count'
             ), **kwargs
         )