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

index 05bc33f0d4478d61e7dd31a810562060d1fc487f..7d4bd00043a9eaaceb84751d46e2955366a21f64 100644 (file)
@@ -2024,15 +2024,26 @@ class API:
         Returns an array containing the IDs of users following the specified
         user.
 
-        :param user_id: |user_id|
-        :param screen_name: |screen_name|
-        :param cursor: |cursor|
-        :param stringify_ids: |stringify_ids|
-        :param count: |count|
+        Parameters
+        ----------
+        user_id
+            |user_id|
+        screen_name
+            |screen_name|
+        cursor
+            |cursor|
+        stringify_ids
+            |stringify_ids|
+        count
+            |count|
 
-        :rtype: list of :class:`int`
+        Returns
+        -------
+        :py:class:`List`\ [:class:`int`]
 
-        :reference: https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-followers-ids
         """
         return self.request(
             'GET', 'followers/ids', endpoint_parameters=(