From f136f13d51c93cf22916d76d0366862345bf1566 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 26 Feb 2022 12:48:49 -0600 Subject: [PATCH] Indicate parameters as optional in documentation for Client.get_spaces Properly indicate ids and user_ids parameters as optional in documentation for Client.get_spaces --- tweepy/client.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tweepy/client.py b/tweepy/client.py index f285489..050e758 100644 --- a/tweepy/client.py +++ b/tweepy/client.py @@ -1967,7 +1967,8 @@ class Client(BaseClient): # Spaces lookup def get_spaces(self, *, ids=None, user_ids=None, **params): - """get_spaces(*, ids, user_ids, expansions, space_fields, user_fields) + """get_spaces(*, ids=None, user_ids=None, expansions, space_fields, \ + user_fields) Returns details about multiple live or scheduled Spaces (created by the specified user IDs if specified). Up to 100 comma-separated Space or @@ -1977,9 +1978,9 @@ class Client(BaseClient): Parameters ---------- - ids : list[str] | str + ids : list[str] | str | None A comma separated list of Spaces (up to 100). - user_ids : list[int | str] | str + user_ids : list[int | str] | str | None A comma separated list of user IDs (up to 100). expansions : list[str] | str :ref:`expansions_parameter` -- 2.25.1