From a9a4d43e81b5ada35ef021272f3fc081071ebac2 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 10:54:28 -0600 Subject: [PATCH] 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 --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.25.1