Update and improve documentation for API.mentions_timeline
authorHarmon <Harmon758@gmail.com>
Sat, 22 May 2021 12:46:56 +0000 (07:46 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 22 May 2021 12:46:56 +0000 (07:46 -0500)
tweepy/api.py

index 2c6994291b025221dcdd2b677659e96dbcffbb70..b381982da1d41a1352ba634eae46d74fd861dc74 100644 (file)
@@ -500,15 +500,26 @@ class API:
 
         Returns the 20 most recent mentions, including retweets.
 
-        :param count: |count|
-        :param since_id: |since_id|
-        :param max_id: |max_id|
-        :param trim_user: |trim_user|
-        :param include_entities: |include_entities|
+        Parameters
+        ----------
+        count
+            |count|
+        since_id
+            |since_id|
+        max_id
+            |max_id|
+        trim_user
+            |trim_user|
+        include_entities
+            |include_entities|
 
-        :rtype: list of :class:`Status` objects
+        Returns
+        -------
+        :py:class:`List`\ [:class:`~tweepy.models.Status`]
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-mentions_timeline
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/tweets/timelines/api-reference/get-statuses-mentions_timeline
         """
         return self.request(
             'GET', 'statuses/mentions_timeline', endpoint_parameters=(