Skip to content

Commit

Permalink
Add type: ignore for StageInstance.channel
Browse files Browse the repository at this point in the history
  • Loading branch information
StockerMC authored Aug 21, 2021
1 parent 8d80259 commit 4065014
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discord/stage_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ def __repr__(self) -> str:
@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
Expand Down

0 comments on commit 4065014

Please sign in to comment.