Skip to content

Commit

Permalink
Stop allowing positional arguments for API.update_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 13, 2021
1 parent 9715c4a commit 99cd815
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,11 +728,11 @@ def update_profile_banner(self, filename, **kwargs):
)

@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
Expand Down

0 comments on commit 99cd815

Please sign in to comment.