Stop allowing positional arguments besides id for API.trends_place
authorHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:13:26 +0000 (22:13 -0600)
committerHarmon <Harmon758@gmail.com>
Fri, 19 Feb 2021 04:13:26 +0000 (22:13 -0600)
tweepy/api.py

index 714ce0073be7350d18a8c65ec2b86214e178e845..adb9502bc504a365b76db465971ba0bfbbf9ff80 100644 (file)
@@ -1115,11 +1115,11 @@ class API:
         return self.request('GET', 'trends/available', **kwargs)
 
     @payload('json')
-    def trends_place(self, id, *args, **kwargs):
+    def trends_place(self, id, **kwargs):
         """ :reference: https://developer.twitter.com/en/docs/trends/trends-for-location/api-reference/get-trends-place
         """
         return self.request(
-            'GET', 'trends/place', id, *args, endpoint_parameters=(
+            'GET', 'trends/place', id, endpoint_parameters=(
                 'id', 'exclude'
             ), **kwargs
         )