From 0b839841c985e1c549a63b5306ac3ea9363ded7f Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 13 Feb 2021 14:02:23 -0600 Subject: [PATCH] Stop allowing positional arguments besides id for API.create_favorite --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index e0c31af..8c2efd5 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -751,11 +751,11 @@ class API: ) @payload('status') - def create_favorite(self, id, *args, **kwargs): + def create_favorite(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/post-favorites-create """ return self.request( - 'POST', 'favorites/create', id, *args, endpoint_parameters=( + 'POST', 'favorites/create', id, endpoint_parameters=( 'id', 'include_entities' ), **kwargs ) -- 2.25.1