Update and improve documentation for API.retweets_of_me
authorHarmon <Harmon758@gmail.com>
Sat, 22 May 2021 13:20:52 +0000 (08:20 -0500)
committerHarmon <Harmon758@gmail.com>
Sat, 22 May 2021 13:20:52 +0000 (08:20 -0500)
tweepy/api.py

index 633c52aa251cff3ccd97f99c650b45a2b26f3836..e2c31643f4253c66f070b86812cd6f2752e7f9ea 100644 (file)
@@ -814,16 +814,28 @@ class API:
         Returns the 20 most recent Tweets of the authenticated user that have
         been retweeted by others.
 
-        :param count: |count|
-        :param since_id: |since_id|
-        :param max_id: |max_id|
-        :param trim_user: |trim_user|
-        :param include_entities: |include_entities|
-        :param include_user_entities: |include_user_entities|
+        Parameters
+        ----------
+        count
+            |count|
+        since_id
+            |since_id|
+        max_id
+            |max_id|
+        trim_user
+            |trim_user|
+        include_entities
+            |include_entities|
+        include_user_entities
+            |include_user_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/post-and-engage/api-reference/get-statuses-retweets_of_me
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/get-statuses-retweets_of_me
         """
         return self.request(
             'GET', 'statuses/retweets_of_me', endpoint_parameters=(