From c211fa32f0805d43b09d161e7906d9c5d953e418 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 11:01:29 -0600 Subject: [PATCH] Stop allowing positional arguments for API.get_media_upload_status Stop allowing positional arguments besides media_id for API.get_media_upload_status --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) -- 2.25.1