From: Harmon Date: Sat, 13 Feb 2021 06:09:44 +0000 (-0600) Subject: Stop allowing positional arguments for API.set_settings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bf1d928cec2b9ada5d161b479f9140d80e254e81;p=tweepy.git Stop allowing positional arguments for API.set_settings --- diff --git a/tweepy/api.py b/tweepy/api.py index 2e82bec..1c6a3ac 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -672,11 +672,11 @@ class API: ) @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