Stop allowing positional arguments for API.set_settings
authorHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 06:09:44 +0000 (00:09 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 06:09:44 +0000 (00:09 -0600)
tweepy/api.py

index 2e82bec89977982be8e9ac5a740899d5faa5bfa1..1c6a3ac99f10b3003006d7b06d8fe44923f83b6b 100644 (file)
@@ -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