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

index 11c7c367b2edca547c1077a9fcda5847fcb1a56e..8ec68c038cae7d5ebd6b7d1d9727ae57543bb83a 100644 (file)
@@ -1002,12 +1002,20 @@ class API:
         Untweets a retweeted status. Requires the ID of the retweet to
         unretweet.
 
-        :param id: |sid|
-        :param trim_user: |trim_user|
+        Parameters
+        ----------
+        id
+            |sid|
+        trim_user
+            |trim_user|
 
-        :rtype: :class:`Status` object
+        Returns
+        -------
+        :class:`~tweepy.models.Status`
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-unretweet-id
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/tweets/post-and-engage/api-reference/post-statuses-unretweet-id
         """
         return self.request(
             'POST', f'statuses/unretweet/{id}', endpoint_parameters=(