From 2e181628ba97ec1252039439d1daccb9df93e565 Mon Sep 17 00:00:00 2001 From: Harmon Date: Fri, 4 Jun 2021 07:08:08 -0500 Subject: [PATCH] Rename API.trends_closest to API.closest_trends --- docs/api.rst | 4 ++-- tweepy/api.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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. -- 2.25.1