Change file API.update_profile_image parameter to be keyword-only
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 17:07:28 +0000 (11:07 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 17:07:28 +0000 (11:07 -0600)
tweepy/api.py

index ecce01e5d21f22be620f5ed51d47357bd41e3826..098b3714dfc58b61598f51964192595140ab3692 100644 (file)
@@ -823,7 +823,7 @@ class API:
         )
 
     @payload('user')
-    def update_profile_image(self, filename, file=None, *args, **kwargs):
+    def update_profile_image(self, filename, *args, file=None, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image
         """
         if file is not None: