Add type: ignore for StageInstance.channel

This commit is contained in:
Stocker 2021-08-21 16:28:15 -04:00 committed by GitHub
parent 8d80259a80
commit 4065014794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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