Rename API.trends_closest to API.closest_trends
authorHarmon <Harmon758@gmail.com>
Fri, 4 Jun 2021 12:08:08 +0000 (07:08 -0500)
committerHarmon <Harmon758@gmail.com>
Fri, 4 Jun 2021 12:08:08 +0000 (07:08 -0500)
docs/api.rst
tweepy/api.py

index 317cacb9cef10351e14e0bd5f313809917ad912e..769b09a3f1d272bf2180b2973764d52475452723 100644 (file)
     +------------------------------------------+--------------------------------------+
     | `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
 --------------------------
index 1ceae9016f30a3418ed42ee886c6636cacf28047..a845d59aec5024e8ba4dafce7c0b939b42fda172 100644 (file)
@@ -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.