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

index 73fed15023b44919e1a43d5bc8067fde0c20fbb6..38fb6d6568dca3e45cc43c94c73daea3cfa245bb 100644 (file)
@@ -3751,11 +3751,18 @@ class API:
 
         Given ``place_id``, provide more details about that place.
 
-        :param place_id: Valid Twitter ID of a location.
+        Parameters
+        ----------
+        place_id
+            Valid Twitter ID of a location.
 
-        :rtype: :class:`Place` object
+        Returns
+        -------
+        :class:`~tweepy.models.Place`
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/geo/place-information/api-reference/get-geo-id-place_id
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/geo/place-information/api-reference/get-geo-id-place_id
         """
         return self.request('GET', f'geo/id/{place_id}', **kwargs)