From: Harmon Date: Fri, 4 Jun 2021 12:08:08 +0000 (-0500) Subject: Rename API.trends_closest to API.closest_trends X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2e181628ba97ec1252039439d1daccb9df93e565;p=tweepy.git Rename API.trends_closest to API.closest_trends --- diff --git a/docs/api.rst b/docs/api.rst index 317cacb..769b09a 100644 --- a/docs/api.rst +++ b/docs/api.rst @@ -224,7 +224,7 @@ +------------------------------------------+--------------------------------------+ | `GET trends/available`_ | :meth:`API.available_trends` | +------------------------------------------+--------------------------------------+ - | `GET trends/closest`_ | :meth:`API.trends_closest` | + | `GET trends/closest`_ | :meth:`API.closest_trends` | +------------------------------------------+--------------------------------------+ | .. centered:: |Get trends near a location|_ | +------------------------------------------+--------------------------------------+ @@ -592,7 +592,7 @@ Get locations with trending topics .. automethod:: API.available_trends -.. automethod:: API.trends_closest +.. automethod:: API.closest_trends Get trends near a location -------------------------- diff --git a/tweepy/api.py b/tweepy/api.py index 1ceae90..a845d59 100644 --- a/tweepy/api.py +++ b/tweepy/api.py @@ -3663,8 +3663,8 @@ class API: return self.request('GET', 'trends/available', **kwargs) @payload('json') - def trends_closest(self, lat, long, **kwargs): - """trends_closest(lat, long) + def closest_trends(self, lat, long, **kwargs): + """closest_trends(lat, long) Returns the locations that Twitter has trending topic information for, closest to a specified location.