Skip to content

Commit

Permalink
Stop allowing positional arguments for API.set_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Feb 13, 2021
1 parent 1cc33b2 commit bf1d928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tweepy/api.py
Expand Up @@ -672,11 +672,11 @@ def get_settings(self, **kwargs):
)

@payload('json')
def set_settings(self, *args, **kwargs):
def set_settings(self, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/post-account-settings
"""
return self.request(
'POST', 'account/settings', *args, endpoint_parameters=(
'POST', 'account/settings', endpoint_parameters=(
'sleep_time_enabled', 'start_sleep_time', 'end_sleep_time',
'time_zone', 'trend_location_woeid', 'lang'
), use_cache=False, **kwargs
Expand Down

0 comments on commit bf1d928

Please sign in to comment.