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

index ae1e5fb22788cd661df4c9b61b2dabca7c54e4b6..7e71cdc6393845b85ada41917cb1050bdbe95af9 100644 (file)
@@ -913,11 +913,11 @@ class API:
         )
 
     @payload('list')
-    def update_list(self, *args, **kwargs):
+    def update_list(self, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/accounts-and-users/create-manage-lists/api-reference/post-lists-update
         """
         return self.request(
-            'POST', 'lists/update', *args, endpoint_parameters=(
+            'POST', 'lists/update', endpoint_parameters=(
                 'list_id', 'slug', 'name', 'mode', 'description',
                 'owner_screen_name', 'owner_id'
             ), **kwargs