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

index 9aedeec0ea13b27cf472848cc33821d3a7e02080..6ed2d436516871c3bfcf65d6e2b272234a33df21 100644 (file)
@@ -834,11 +834,11 @@ class API:
 
     @pagination(mode='cursor')
     @payload('user', list=True)
-    def blocks(self, *args, **kwargs):
+    def blocks(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-list
         """
         return self.request(
-            'GET', 'blocks/list', *args, endpoint_parameters=(
+            'GET', 'blocks/list', endpoint_parameters=(
                 'include_entities', 'skip_status', 'cursor'
             ), **kwargs
         )