Change file API.update_with_media parameter to be keyword-only
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 22:48:26 +0000 (16:48 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 22:48:26 +0000 (16:48 -0600)
tweepy/api.py

index 94c6ec24ced2e057134102a7810a4e770c4f3e44..e43adbd36ae97d4b99e5d6e08945dc7dace76102 100644 (file)
@@ -484,7 +484,7 @@ class API:
         )
 
     @payload('status')
-    def update_with_media(self, filename, status, file=None, *args, **kwargs):
+    def update_with_media(self, filename, status, *args, file=None, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update_with_media
         """
         if file is not None: