Update and improve documentation for API.friends
authorHarmon <Harmon758@gmail.com>
Mon, 24 May 2021 21:52:16 +0000 (16:52 -0500)
committerHarmon <Harmon758@gmail.com>
Mon, 24 May 2021 21:52:16 +0000 (16:52 -0500)
tweepy/api.py

index 1072c1b5c474d649a3d4a90d5e2121ec3991ce45..aac1b74560574868f555fa96b9a5c8d72a009656 100644 (file)
@@ -2135,16 +2135,28 @@ class API:
         Returns a user's friends ordered in which they were added 100 at a
         time. If no user is specified it defaults to the authenticated user.
 
-        :param user_id: |user_id|
-        :param screen_name: |screen_name|
-        :param cursor: |cursor|
-        :param count: |count|
-        :param skip_status: |skip_status|
-        :param include_user_entities: |include_user_entities|
+        Parameters
+        ----------
+        user_id
+            |user_id|
+        screen_name
+            |screen_name|
+        cursor
+            |cursor|
+        count
+            |count|
+        skip_status
+            |skip_status|
+        include_user_entities
+            |include_user_entities|
 
-        :rtype: list of :class:`User` objects
+        Returns
+        -------
+        :py:class:`List`\ [:class:`~tweepy.models.User`]
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-list
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-friends-list
         """
         return self.request(
             'GET', 'friends/list', endpoint_parameters=(