Stop allowing positional arguments for API.get_media_upload_status
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 17:01:29 +0000 (11:01 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 17:01:29 +0000 (11:01 -0600)
Stop allowing positional arguments besides media_id for API.get_media_upload_status

tweepy/api.py

index 9e1a1aee43ea423f2551caad0ce43177fe7ee4cd..919259a47b80f5323bdaedd8fd65dd78db722779 100644 (file)
@@ -500,11 +500,11 @@ class API:
         )
 
     @payload('media')
-    def get_media_upload_status(self, media_id, *args, **kwargs):
+    def get_media_upload_status(self, media_id, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/get-media-upload-status
         """
         return self.request(
-            'GET', 'media/upload', *args, endpoint_parameters=(
+            'GET', 'media/upload', endpoint_parameters=(
                 'command', 'media_id'
             ), command='STATUS', media_id=media_id, upload_api=True, **kwargs
         )