From: Harmon Date: Sun, 14 Feb 2021 06:36:09 +0000 (-0600) Subject: Stop allowing positional arguments for API.update_list X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8b3b4fbab2c9150ff3ce1f15f1f4a0f8bc5edde1;p=tweepy.git Stop allowing positional arguments for API.update_list --- diff --git a/tweepy/api.py b/tweepy/api.py index ae1e5fb..7e71cdc 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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