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

index 7b12de39e85d97a09b43cd70a51060d387f0ccd9..3e2242c93cbd8593caa28d9348ad9a42aa233a6d 100644 (file)
@@ -2367,14 +2367,24 @@ class API:
         returned by using this API (about being listed in the People Search).
         It is only possible to retrieve the first 1000 matches from this API.
 
-        :param q: The query to run against people search.
-        :param page: |page|
-        :param count: |count|
-        :param include_entities: |include_entities|
+        Parameters
+        ----------
+        q
+            The query to run against people search.
+        page
+            |page|
+        count
+            |count|
+        include_entities
+            |include_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-users-search
+        References
+        ----------
+        https://developer.twitter.com/en/docs/twitter-api/v1/accounts-and-users/follow-search-get-users/api-reference/get-users-search
         """
         return self.request(
             'GET', 'users/search', endpoint_parameters=(