From: Harmon Date: Sat, 26 Feb 2022 18:47:15 +0000 (-0600) Subject: Indicate parameters as optional in documentation for Client.get_user X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=ba300086eca67341a1f23720281f24f88bddaa40;p=tweepy.git Indicate parameters as optional in documentation for Client.get_user Properly indicate id and username parameters as optional in documentation for Client.get_user --- diff --git a/tweepy/client.py b/tweepy/client.py index 0a6c8c5..64309c4 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -1769,17 +1769,17 @@ class Client(BaseClient): # User lookup def get_user(self, *, id=None, username=None, user_auth=False, **params): - """get_user(*, id, username, expansions, tweet_fields, user_fields, \ - user_auth=False) + """get_user(*, id=None, username=None, expansions, tweet_fields, \ + user_fields, user_auth=False) Returns a variety of information about a single user specified by the requested ID or username. Parameters ---------- - id : int | str + id : int | str | None The ID of the user to lookup. - username : str + username : str | None The Twitter username (handle) of the user. expansions : list[str] | str :ref:`expansions_parameter`