From: Harmon Date: Fri, 19 Feb 2021 16:19:39 +0000 (-0600) Subject: Change API.simple_upload parameters to be keyword-only X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e4b11a5e03b02f32200292cfe2ffd74db9264379;p=tweepy.git Change API.simple_upload parameters to be keyword-only Change file, media_category, and additional_owners API.simple_upload parameters to be keyword-only --- diff --git a/tweepy/api.py b/tweepy/api.py index 7373948..2855a32 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -355,8 +355,8 @@ class API: return self.simple_upload(filename, file=file, *args, **kwargs) @payload('media') - def simple_upload(self, filename, file=None, media_category=None, - additional_owners=None, *args, **kwargs): + def simple_upload(self, filename, *args, file=None, media_category=None, + additional_owners=None, **kwargs): """ :reference: https://developer.twitter.com/en/docs/media/upload-media/api-reference/post-media-upload """ if file is not None: