[commands] Fix variance issues in Bot.add_cog with List[Snowflake]

This commit is contained in:
Alex Nørgaard
2022-11-21 06:15:18 +00:00
committed by GitHub
parent 436d0849d9
commit 50078087e5
2 changed files with 5 additions and 3 deletions

View File

@ -39,6 +39,7 @@ from typing import (
List,
Optional,
TYPE_CHECKING,
Sequence,
Tuple,
TypeVar,
Union,
@ -660,7 +661,7 @@ class Cog(metaclass=CogMeta):
"""
pass
async def _inject(self, bot: BotBase, override: bool, guild: Optional[Snowflake], guilds: List[Snowflake]) -> Self:
async def _inject(self, bot: BotBase, override: bool, guild: Optional[Snowflake], guilds: Sequence[Snowflake]) -> Self:
cls = self.__class__
# we'll call this first so that errors can propagate without