Update and improve documentation for API.destroy_mute
authorHarmon <Harmon758@gmail.com>
Thu, 27 May 2021 11:42:13 +0000 (06:42 -0500)
committerHarmon <Harmon758@gmail.com>
Thu, 27 May 2021 11:42:13 +0000 (06:42 -0500)
tweepy/api.py

index 816f7b93fcd74d2cc54e9bdd376a0cca8702000e..950842beaafd7944c72571e26ae1ea3dfaf4acb7 100644 (file)
@@ -3098,12 +3098,18 @@ class API:
         Un-mutes the user specified in the ID parameter for the authenticating
         user.
 
-        :param screen_name: |screen_name|
-        :param user_id: |user_id|
+        screen_name
+            |screen_name|
+        user_id
+            |user_id|
 
-        :rtype: :class:`User` object
+        Returns
+        -------
+        :class:`~tweepy.models.User`
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-destroy
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/mute-block-report-users/api-reference/post-mutes-users-destroy
         """
         return self.request(
             'POST', 'mutes/users/destroy', endpoint_parameters=(