From 4065014794559fc618c63a6dcbb9ee376137b8c6 Mon Sep 17 00:00:00 2001 From: Stocker <44980366+StockerMC@users.noreply.github.com> Date: Sat, 21 Aug 2021 16:28:15 -0400 Subject: [PATCH] Add type: ignore for StageInstance.channel --- discord/stage_instance.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/discord/stage_instance.py b/discord/stage_instance.py index d46ead4e5..479e89f2c 100644 --- a/discord/stage_instance.py +++ b/discord/stage_instance.py @@ -106,7 +106,8 @@ class StageInstance(Hashable): @cached_slot_property('_cs_channel') def channel(self) -> Optional[StageChannel]: """Optional[:class:`StageChannel`]: The channel that stage instance is running in.""" - return self._state.get_channel(self.channel_id) + # the returned channel will always be a StageChannel or None + return self._state.get_channel(self.channel_id) # type: ignore def is_public(self) -> bool: return self.privacy_level is StagePrivacyLevel.public