Stop allowing positional arguments for API.get_settings
authorHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 23:49:20 +0000 (17:49 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 12 Feb 2021 23:49:20 +0000 (17:49 -0600)
Also improve docstring formatting consistency

tweepy/api.py

index a060aab5c3ffbd70d82d4ed162700819e4602ad6..fc26df6b9d5fc48dbd10da248465934e6858dc43 100644 (file)
@@ -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')