From: Harmon Date: Fri, 19 Feb 2021 04:13:26 +0000 (-0600) Subject: Stop allowing positional arguments besides id for API.trends_place X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=548810c081508965972bbdfcec227ebcba3a350d;p=tweepy.git Stop allowing positional arguments besides id for API.trends_place --- 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 )