From: Harmon Date: Fri, 12 Feb 2021 23:49:20 +0000 (-0600) Subject: Stop allowing positional arguments for API.get_settings X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2c2f0ecbfb4bc9b262f2320589f2ce3cf99bdc9c;p=tweepy.git Stop allowing positional arguments for API.get_settings Also improve docstring formatting consistency --- 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')