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

index 43bcf16a0fa2bbd0b8e3b576c94e39d228ea2038..13781c6a21e09ecc405d11720286ce051a7ee84e 100644 (file)
@@ -306,11 +306,11 @@ class API:
         )
 
     @payload('status')
-    def get_status(self, id, *args, **kwargs):
+    def get_status(self, id, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/tweets/post-and-engage/api-reference/get-statuses-show-id
         """
         return self.request(
-            'GET', 'statuses/show', id, *args, endpoint_parameters=(
+            'GET', 'statuses/show', id, endpoint_parameters=(
                 'id', 'trim_user', 'include_my_retweet', 'include_entities',
                 'include_ext_alt_text', 'include_card_uri'
             ), **kwargs