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

index 1e99825f71615c58a78a66a0fe1a1f21062b83eb..bd8223cf975c94d7fccf6eb0d72c69f592f79e15 100644 (file)
@@ -845,11 +845,11 @@ class API:
 
     @pagination(mode='cursor')
     @payload('ids')
-    def blocks_ids(self, *args, **kwargs):
+    def blocks_ids(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/mute-block-report-users/api-reference/get-blocks-ids
         """
         return self.request(
-            'GET', 'blocks/ids', *args, endpoint_parameters=(
+            'GET', 'blocks/ids', endpoint_parameters=(
                 'stringify_ids', 'cursor',
             ), **kwargs
         )