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

index 4da6478c656620283ffdecb2a6f99a279bea1659..36ba1e2c21c88a2dacabd427a9f4ee02c369d3b5 100644 (file)
@@ -272,11 +272,11 @@ class API:
 
     @pagination(mode='id')
     @payload('status', list=True)
-    def user_timeline(self, *args, **kwargs):
+    def user_timeline(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-user_timeline
         """
         return self.request(
-            'GET', 'statuses/user_timeline', *args, endpoint_parameters=(
+            'GET', 'statuses/user_timeline', endpoint_parameters=(
                 'user_id', 'screen_name', 'since_id', 'count', 'max_id',
                 'trim_user', 'exclude_replies', 'include_rts'
             ), **kwargs