Stop allowing positional arguments besides id for API.statuses_lookup
authorHarmon <Harmon758@gmail.com>
Mon, 8 Feb 2021 08:37:19 +0000 (02:37 -0600)
committerHarmon <Harmon758@gmail.com>
Mon, 8 Feb 2021 08:37:19 +0000 (02:37 -0600)
tweepy/api.py

index 8855eb41d08e5fb206404d91da50bb250e7b202b..4da6478c656620283ffdecb2a6f99a279bea1659 100644 (file)
@@ -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