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

index b40fc0c1108334d5fbb9845543337db96aff3aca..317cacb9cef10351e14e0bd5f313809917ad912e 100644 (file)
     +------------------------------------------+--------------------------------------+
     | .. centered:: |Get locations with trending topics|_                             |
     +------------------------------------------+--------------------------------------+
-    | `GET trends/available`_                  | :meth:`API.trends_available`         |
+    | `GET trends/available`_                  | :meth:`API.available_trends`         |
     +------------------------------------------+--------------------------------------+
     | `GET trends/closest`_                    | :meth:`API.trends_closest`           |
     +------------------------------------------+--------------------------------------+
@@ -590,7 +590,7 @@ Trends
 Get locations with trending topics
 ----------------------------------
 
-.. automethod:: API.trends_available
+.. automethod:: API.available_trends
 
 .. automethod:: API.trends_closest
 
index b3c9bde89bd5db844cc5987c04d9109a69e6f047..1ceae9016f30a3418ed42ee886c6636cacf28047 100644 (file)
@@ -3642,8 +3642,8 @@ class API:
     # Get locations with trending topics
 
     @payload('json')
-    def trends_available(self, **kwargs):
-        """trends_available()
+    def available_trends(self, **kwargs):
+        """available_trends()
 
         Returns the locations that Twitter has trending topic information for.
         The response is an array of "locations" that encode the location's