From ba300086eca67341a1f23720281f24f88bddaa40 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 26 Feb 2022 12:47:15 -0600 Subject: [PATCH] Indicate parameters as optional in documentation for Client.get_user Properly indicate id and username parameters as optional in documentation for Client.get_user --- tweepy/client.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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` -- 2.25.1