From 2c2f0ecbfb4bc9b262f2320589f2ce3cf99bdc9c Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 12 Feb 2021 17:49:20 -0600 Subject: [PATCH] Stop allowing positional arguments for API.get_settings Also improve docstring formatting consistency --- tweepy/api.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index a060aab..fc26df6 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -664,10 +664,11 @@ class API: ) @payload('json') - def get_settings(self, *args, **kwargs): - """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-settings """ + def get_settings(self, **kwargs): + """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/manage-account-settings/api-reference/get-account-settings + """ return self.request( - 'GET', 'account/settings', *args, use_cache=False, **kwargs + 'GET', 'account/settings', use_cache=False, **kwargs ) @payload('json') -- 2.25.1