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

index 27396036741640ac4f3a8c03471860db9c6bf6e0..30e25a28b38cce41a56e79f5e92018a830125091 100644 (file)
@@ -3299,9 +3299,18 @@ class API:
         Check on the progress of a chunked media upload. If the upload has
         succeeded, it's safe to create a Tweet with this ``media_id``.
 
-        :param media_id: The ID of the media to check.
+        Parameters
+        ----------
+        media_id
+            The ID of the media to check.
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/get-media-upload-status
+        Returns
+        -------
+        :class:`~tweepy.models.Media`
+
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/get-media-upload-status
         """
         return self.request(
             'GET', 'media/upload', endpoint_parameters=(