From: Harmon Date: Fri, 19 Feb 2021 17:01:29 +0000 (-0600) Subject: Stop allowing positional arguments for API.get_media_upload_status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c211fa32f0805d43b09d161e7906d9c5d953e418;p=tweepy.git Stop allowing positional arguments for API.get_media_upload_status Stop allowing positional arguments besides media_id for API.get_media_upload_status --- diff --git a/tweepy/api.py b/tweepy/api.py index 9e1a1ae..919259a 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 )