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

index ad14a11f235348cf253850176b033af8715f58cf..846ed3df61d2734ca0e92ade884700c36795094f 100644 (file)
@@ -317,14 +317,14 @@ class API:
         )
 
     @payload('status')
-    def update_status(self, status, *args, **kwargs):
+    def update_status(self, status, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update
         """
         if 'media_ids' in kwargs:
             kwargs['media_ids'] = list_to_csv(kwargs['media_ids'])
 
         return self.request(
-            'POST', 'statuses/update', status, *args, endpoint_parameters=(
+            'POST', 'statuses/update', status, endpoint_parameters=(
                 'status', 'in_reply_to_status_id',
                 'auto_populate_reply_metadata', 'exclude_reply_user_ids',
                 'attachment_url', 'media_ids', 'possibly_sensitive', 'lat',