Skip to content

Commit

Permalink
Stop allowing positional arguments for API.update_profile_image
Browse files Browse the repository at this point in the history
Stop allowing positional arguments besides filename for API.update_profile_image
  • Loading branch information
Harmon758 committed Feb 19, 2021
1 parent 8861e1c commit 3539fa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ def rate_limit_status(self, **kwargs):
)

@payload('user')
def update_profile_image(self, filename, *args, file=None, **kwargs):
def update_profile_image(self, filename, *, file=None, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-update_profile_image
"""
if file is not None:
Expand Down

0 comments on commit 3539fa2

Please sign in to comment.