aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStocker <[email protected]>2021-08-21 16:28:15 -0400
committerGitHub <[email protected]>2021-08-21 16:28:15 -0400
commit4065014794559fc618c63a6dcbb9ee376137b8c6 (patch)
tree7508d62026b4b563472ffa379a5505bc71bc90c3
parentReformat shard.py (diff)
downloaddiscord.py-4065014794559fc618c63a6dcbb9ee376137b8c6.tar.xz
discord.py-4065014794559fc618c63a6dcbb9ee376137b8c6.zip
Add type: ignore for StageInstance.channel
-rw-r--r--discord/stage_instance.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/discord/stage_instance.py b/discord/stage_instance.py
index d46ead4e..479e89f2 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