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

index 7b94555175a762cb99bab7422990d5d165e5ec4b..5cd0ee43926a0cbf5cd483cc573bdb6b3d422834 100644 (file)
@@ -1319,18 +1319,32 @@ class API:
 
         Returns the members of the specified list.
 
-        :param list_id: |list_id|
-        :param slug: |slug|
-        :param owner_screen_name: |owner_screen_name|
-        :param owner_id: |owner_id|
-        :param count: |count|
-        :param cursor: |cursor|
-        :param include_entities: |include_entities|
-        :param skip_status: |skip_status|
+        Parameters
+        ----------
+        list_id
+            |list_id|
+        slug
+            |slug|
+        owner_screen_name
+            |owner_screen_name|
+        owner_id
+            |owner_id|
+        count
+            |count|
+        cursor
+            |cursor|
+        include_entities
+            |include_entities|
+        skip_status
+            |skip_status|
 
-        :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/create-manage-lists/api-reference/get-lists-members
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/create-manage-lists/api-reference/get-lists-members
         """
         return self.request(
             'GET', 'lists/members', endpoint_parameters=(