From: Harmon Date: Fri, 19 Feb 2021 16:55:19 +0000 (-0600) Subject: Stop allowing positional arguments besides filename for API.media_upload X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=139e248aa6d5cac908388efd0b9d8299487ad8db;p=tweepy.git Stop allowing positional arguments besides filename for API.media_upload --- diff --git a/tweepy/api.py b/tweepy/api.py index dd82578..9e1a1ae 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -333,7 +333,7 @@ class API: ), **kwargs ) - def media_upload(self, filename, *args, file=None, chunked=False, + def media_upload(self, filename, *, 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 """