From: Harmon Date: Mon, 8 Feb 2021 08:58:18 +0000 (-0600) Subject: Stop allowing positional arguments besides status for API.update_status X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=761cbfe05e866e60edf7c4e58b9ecf356507c6f2;p=tweepy.git Stop allowing positional arguments besides status for API.update_status --- diff --git a/tweepy/api.py b/tweepy/api.py index ad14a11..846ed3d 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -317,14 +317,14 @@ class API: ) @payload('status') - def update_status(self, status, *args, **kwargs): + def update_status(self, status, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-statuses-update """ if 'media_ids' in kwargs: kwargs['media_ids'] = list_to_csv(kwargs['media_ids']) return self.request( - 'POST', 'statuses/update', status, *args, endpoint_parameters=( + 'POST', 'statuses/update', status, endpoint_parameters=( 'status', 'in_reply_to_status_id', 'auto_populate_reply_metadata', 'exclude_reply_user_ids', 'attachment_url', 'media_ids', 'possibly_sensitive', 'lat',