Stop allowing positional arguments besides id for API.create_favorite
authorHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 20:02:23 +0000 (14:02 -0600)
committerHarmon <Harmon758@gmail.com>
Sat, 13 Feb 2021 20:02:23 +0000 (14:02 -0600)
tweepy/api.py

index e0c31af994fd1dcaf4a95bb4919fcd3f315000e6..8c2efd5e44325749f89ec3467fd3169fda48a977 100644 (file)
@@ -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
         )