From: Harmon Date: Fri, 19 Feb 2021 16:54:28 +0000 (-0600) Subject: Change API.media_upload parameters to be keyword-only X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a9a4d43e81b5ada35ef021272f3fc081071ebac2;p=tweepy.git Change API.media_upload parameters to be keyword-only Change file, chunked, media_category, and additional_owners API.media_upload parameters to be keyword-only --- diff --git a/tweepy/api.py b/tweepy/api.py index 114cdba..dd82578 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -333,9 +333,8 @@ class API: ), **kwargs ) - def media_upload(self, filename, file=None, chunked=False, - media_category=None, additional_owners=None, *args, - **kwargs): + def media_upload(self, filename, *args, file=None, chunked=False, + media_category=None, additional_owners=None, **kwargs): """ :reference: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload """ h = None