diff options
| author | Stocker <[email protected]> | 2021-08-21 16:28:15 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-08-21 16:28:15 -0400 |
| commit | 4065014794559fc618c63a6dcbb9ee376137b8c6 (patch) | |
| tree | 7508d62026b4b563472ffa379a5505bc71bc90c3 | |
| parent | Reformat shard.py (diff) | |
| download | discord.py-4065014794559fc618c63a6dcbb9ee376137b8c6.tar.xz discord.py-4065014794559fc618c63a6dcbb9ee376137b8c6.zip | |
Add type: ignore for StageInstance.channel
| -rw-r--r-- | discord/stage_instance.py | 3 |
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 |