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

index f96fecdc386537fad532356cbdea256edb55aabb..7c615f0b076c2f56222ce1e7b443b302034ecf7f 100644 (file)
@@ -3566,11 +3566,18 @@ class API:
         ``processing_info field``, it may also be necessary to check its status
         and wait for it to return success before proceeding to Tweet creation.
 
-        :param media_id: The ``media_id`` returned from the initialization.
+        Parameters
+        ----------
+        media_id
+            The ``media_id`` returned from the initialization.
 
-        :rtype: :class:`Media` object
+        Returns
+        -------
+        :class:`~tweepy.models.Media`
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-finalize
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/media/upload-media/api-reference/post-media-upload-finalize
         """
         headers = {'Content-Type': 'application/x-www-form-urlencoded'}
         post_data = {