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

index c375f6150e89d2c566fd3286541eda8ec6157f7a..7eb16cd3b3e06c61df62e475bd0530610d236e8b 100644 (file)
@@ -836,7 +836,7 @@ class API:
             ), files=files, **kwargs
         )
 
-    def update_profile_banner(self, filename, file=None, *args, **kwargs):
+    def update_profile_banner(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_banner
         """
         if file is not None: