From: Harmon Date: Fri, 19 Feb 2021 04:16:47 +0000 (-0600) Subject: Stop allowing positional arguments for API.trends_closest X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=794649099b915bd44954aef2844e64dc394a4f6f;p=tweepy.git Stop allowing positional arguments for API.trends_closest Stop allowing positional arguments besides lat and long for API.trends_closest --- diff --git a/tweepy/api.py b/tweepy/api.py index c4c4a69..4a3c61e 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -1125,11 +1125,11 @@ class API: ) @payload('json') - def trends_closest(self, lat, long, *args, **kwargs): + def trends_closest(self, lat, long, **kwargs): """ :reference: https://developer.twitter.com/en/docs/trends/locations-with-trending-topics/api-reference/get-trends-closest """ return self.request( - 'GET', 'trends/closest', lat, long, *args, endpoint_parameters=( + 'GET', 'trends/closest', lat, long, endpoint_parameters=( 'lat', 'long' ), **kwargs )