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

index 25056547cc1f2428b9dcf9b61dd64a5ec29cb068..bc4470492af0563f0e3f272bbcdfd455c7172271 100644 (file)
@@ -695,12 +695,11 @@ class API:
         )
 
     @payload('json')
-    def rate_limit_status(self, *args, **kwargs):
+    def rate_limit_status(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/developer-utilities/rate-limit-status/api-reference/get-application-rate_limit_status
         """
         return self.request(
-            'GET', 'application/rate_limit_status', *args,
-            endpoint_parameters=(
+            'GET', 'application/rate_limit_status', endpoint_parameters=(
                 'resources',
             ), use_cache=False, **kwargs
         )