From: Harmon Date: Sat, 13 Feb 2021 19:52:47 +0000 (-0600) Subject: Stop allowing positional arguments for API.update_profile X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=99cd815b0e730a8f1bc2bd0737fcb83749a483c7;p=tweepy.git Stop allowing positional arguments for API.update_profile --- diff --git a/tweepy/api.py b/tweepy/api.py index f62c5f6..85e5b87 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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