From 5d92488d64930b1c59a81ca152fd6b4ca054aa20 Mon Sep 17 00:00:00 2001 From: Harmon Date: Tue, 19 Apr 2022 15:03:09 -0500 Subject: [PATCH] Update documentation for Space.subscriber_count --- tweepy/space.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tweepy/space.py b/tweepy/space.py index 1453147..a53fc16 100644 --- a/tweepy/space.py +++ b/tweepy/space.py @@ -56,6 +56,8 @@ class Space(HashableID, DataMapping): users in this list are invited to speak via the Invite user option. participant_count : int | None The current number of users in the Space, including Hosts and Speakers. + subscriber_count : int | None + The number of people who set a reminder to a Space. scheduled_start : datetime.datetime | None Indicates the start time of a scheduled Space, as set by the creator of the Space. This field is returned only if the Space has been scheduled; @@ -67,7 +69,6 @@ class Space(HashableID, DataMapping): user who requested to speak and was allowed via the Add speaker option. started_at : datetime.datetime | None Indicates the actual start time of a Space. - subscriber_count : int | None title : str | None The title of the Space as specified by the creator. topic_ids : list @@ -86,7 +87,7 @@ class Space(HashableID, DataMapping): __slots__ = ( "data", "id", "state", "created_at", "ended_at", "host_ids", "lang", "is_ticketed", "invited_user_ids", "participant_count", - "scheduled_start", "speaker_ids", "started_at", "subscriber_count", + "subscriber_count", "scheduled_start", "speaker_ids", "started_at", "title", "topic_ids", "updated_at" ) @@ -108,6 +109,7 @@ class Space(HashableID, DataMapping): self.is_ticketed = data.get("is_ticketed") self.invited_user_ids = data.get("invited_user_ids", []) self.participant_count = data.get("participant_count") + self.subscriber_count = data.get("subscriber_count") self.scheduled_start = data.get("scheduled_start") if self.scheduled_start is not None: @@ -119,9 +121,6 @@ class Space(HashableID, DataMapping): if self.started_at is not None: self.started_at = parse_datetime(self.started_at) - # https://twittercommunity.com/t/missing-documentation-for-new-space-object-subscriber-count-field-on-space-object-page/166943 - self.subscriber_count = data.get("subscriber_count") - self.title = data.get("title") self.topic_ids = data.get("topic_ids", []) -- 2.25.1