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