Add generic arguments for extras typing

This commit is contained in:
Bryan Forbes
2022-06-27 21:35:22 -05:00
committed by GitHub
parent 38ab4b0810
commit 0eb3d26343
2 changed files with 11 additions and 11 deletions

View File

@ -837,7 +837,7 @@ class CommandTree(Generic[ClientT]):
nsfw: bool = False,
guild: Optional[Snowflake] = MISSING,
guilds: Sequence[Snowflake] = MISSING,
extras: dict = MISSING,
extras: Dict[Any, Any] = MISSING,
) -> Callable[[CommandCallback[Group, P, T]], Command[Group, P, T]]:
"""Creates an application command directly under this tree.
@ -898,7 +898,7 @@ class CommandTree(Generic[ClientT]):
nsfw: bool = False,
guild: Optional[Snowflake] = MISSING,
guilds: Sequence[Snowflake] = MISSING,
extras: dict = MISSING,
extras: Dict[Any, Any] = MISSING,
) -> Callable[[ContextMenuCallback], ContextMenu]:
"""Creates a application command context menu from a regular function directly under this tree.