Rename id_ API.statuses_lookup parameter to id
authorHarmon <Harmon758@gmail.com>
Mon, 8 Feb 2021 08:36:25 +0000 (02:36 -0600)
committerHarmon <Harmon758@gmail.com>
Mon, 8 Feb 2021 08:36:25 +0000 (02:36 -0600)
tweepy/api.py

index 59fe2550f8277b3393c7493f3d6233d473a6130c..8855eb41d08e5fb206404d91da50bb250e7b202b 100644 (file)
@@ -260,11 +260,11 @@ class API:
         )
 
     @payload('status', list=True)
-    def statuses_lookup(self, id_, *args, **kwargs):
+    def statuses_lookup(self, id, *args, **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,
+            'GET', 'statuses/lookup', list_to_csv(id), *args,
             endpoint_parameters=(
                 'id', 'include_entities', 'trim_user', 'map',
                 'include_ext_alt_text', 'include_card_uri'