From: Harmon Date: Sat, 26 Feb 2022 18:48:02 +0000 (-0600) Subject: Indicate parameters as optional in documentation for Client.get_users X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=475bb50f6db0bc35a558ea28d43aaf9f0cdcda0c;p=tweepy.git Indicate parameters as optional in documentation for Client.get_users Properly indicate ids and usernames parameters as optional in documentation for Client.get_users --- diff --git a/tweepy/client.py b/tweepy/client.py index 64309c4..f285489 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -1824,7 +1824,7 @@ class Client(BaseClient): def get_users(self, *, ids=None, usernames=None, user_auth=False, **params): - """get_users(*, ids, usernames, expansions, tweet_fields, \ + """get_users(*, ids=None, usernames=None, expansions, tweet_fields, \ user_fields, user_auth=False) Returns a variety of information about one or more users specified by @@ -1832,11 +1832,11 @@ class Client(BaseClient): Parameters ---------- - ids : list[int | str] | str + ids : list[int | str] | str | None A comma separated list of user IDs. Up to 100 are allowed in a single request. Make sure to not include a space between commas and fields. - usernames : list[str] | str + usernames : list[str] | str | None A comma separated list of Twitter usernames (handles). Up to 100 are allowed in a single request. Make sure to not include a space between commas and fields.