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

tweepy/api.py

index 7373948937fcd585eef87dbcc5a2786fa25c52ce..2855a3287f5f2ec444a98159d43056b04fac0d15 100644 (file)
@@ -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: