From 548810c081508965972bbdfcec227ebcba3a350d Mon Sep 17 00:00:00 2001 From: Harmon Date: Thu, 18 Feb 2021 22:13:26 -0600 Subject: [PATCH] Stop allowing positional arguments besides id for API.trends_place --- tweepy/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/api.py b/tweepy/api.py index 714ce00..adb9502 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -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 ) -- 2.25.1