Stop allowing positional arguments besides filename for API.media_upload
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 16:55:19 +0000 (10:55 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 16:55:19 +0000 (10:55 -0600)
tweepy/api.py

index dd82578bf29d433b24c4ffe6c1b950703ff3f369..9e1a1aee43ea423f2551caad0ce43177fe7ee4cd 100644 (file)
@@ -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
         """