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

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