From 139e248aa6d5cac908388efd0b9d8299487ad8db Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 19 Feb 2021 10:55:19 -0600 Subject: [PATCH] Stop allowing positional arguments besides filename for API.media_upload --- tweepy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 """ -- 2.25.1