Update and improve documentation for API.trends_available
authorHarmon <Harmon758@gmail.com>
Thu, 27 May 2021 15:54:20 +0000 (10:54 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 27 May 2021 15:54:20 +0000 (10:54 -0500)
tweepy/api.py

index e7e37c650652f75a71178c02b73a372e8b11765e..863aa2f2ba2869c7f9d32a43f21b4f944a39edcd 100644 (file)
@@ -3646,9 +3646,14 @@ class API:
         information such as a canonical name and country the location belongs
         in.
 
-        :rtype: :class:`JSON` object
+        Returns
+        -------
+        :class:`dict`
+            JSON
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/trends/locations-with-trending-topics/api-reference/get-trends-available
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/trends/locations-with-trending-topics/api-reference/get-trends-available
         """
         return self.request('GET', 'trends/available', **kwargs)