From 99cd815b0e730a8f1bc2bd0737fcb83749a483c7 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 13 Feb 2021 13:52:47 -0600 Subject: [PATCH] Stop allowing positional arguments for API.update_profile --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.25.1