From 475bb50f6db0bc35a558ea28d43aaf9f0cdcda0c Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 26 Feb 2022 12:48:02 -0600 Subject: [PATCH] Indicate parameters as optional in documentation for Client.get_users Properly indicate ids and usernames parameters as optional in documentation for Client.get_users --- tweepy/client.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. -- 2.25.1