From cf9845d18c42600f890e5a40b313e77079ca9a5b Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 8 Feb 2021 02:37:19 -0600 Subject: [PATCH] Stop allowing positional arguments besides id for API.statuses_lookup --- tweepy/api.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 8855eb4..4da6478 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -260,12 +260,11 @@ class API: ) @payload('status', list=True) - def statuses_lookup(self, id, *args, **kwargs): + def statuses_lookup(self, id, **kwargs): """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-lookup """ return self.request( - 'GET', 'statuses/lookup', list_to_csv(id), *args, - endpoint_parameters=( + 'GET', 'statuses/lookup', list_to_csv(id), endpoint_parameters=( 'id', 'include_entities', 'trim_user', 'map', 'include_ext_alt_text', 'include_card_uri' ), **kwargs -- 2.25.1