Change API.media_upload parameters to be keyword-only
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 16:54:28 +0000 (10:54 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 16:54:28 +0000 (10:54 -0600)
Change file, chunked, media_category, and additional_owners API.media_upload parameters to be keyword-only

tweepy/api.py

index 114cdba5420d8ca27bd8c34fd4c756fba6f18c8b..dd82578bf29d433b24c4ffe6c1b950703ff3f369 100644 (file)
@@ -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