Fix a few more type errors

This commit is contained in:
Rapptz
2022-02-21 23:31:18 -05:00
parent d01e73fca5
commit 30e7a2e937
3 changed files with 9 additions and 5 deletions

View File

@ -215,6 +215,7 @@ class StreamIntegration(Integration):
@property
def role(self) -> Optional[Role]:
"""Optional[:class:`Role`] The role which the integration uses for subscribers."""
# The key is `int` but `int | None` will return `None` anyway.
return self.guild.get_role(self._role_id) # type: ignore
async def edit(