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

index 64348462ac4597b17b3fb949ae4720ab35da6e9e..59fe2550f8277b3393c7493f3d6233d473a6130c 100644 (file)
@@ -249,11 +249,11 @@ class API:
 
     @pagination(mode='id')
     @payload('status', list=True)
-    def home_timeline(self, *args, **kwargs):
+    def home_timeline(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/timelines/api-reference/get-statuses-home_timeline
         """
         return self.request(
-            'GET', 'statuses/home_timeline', *args, endpoint_parameters=(
+            'GET', 'statuses/home_timeline', endpoint_parameters=(
                 'count', 'since_id', 'max_id', 'trim_user', 'exclude_replies',
                 'include_entities'
             ), **kwargs