Stop allowing positional arguments for API.update_profile
authorHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 19:52:47 +0000 (13:52 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 19:52:47 +0000 (13:52 -0600)
tweepy/api.py

index f62c5f65250609d49cb56164a8d2bcf24d54deed..85e5b872156aca58ca0374e42be690504a232993 100644 (file)
@@ -728,11 +728,11 @@ class API:
         )
 
     @payload('user')
-    def update_profile(self, *args, **kwargs):
+    def update_profile(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile
         """
         return self.request(
-            'POST', 'account/update_profile', *args, endpoint_parameters=(
+            'POST', 'account/update_profile', endpoint_parameters=(
                 'name', 'url', 'location', 'description', 'profile_link_color',
                 'include_entities', 'skip_status'
             ), **kwargs