|
66 | 66 | from .utils import MISSING, async_all, find, get |
67 | 67 |
|
68 | 68 | if TYPE_CHECKING: |
| 69 | + from typing_extensions import Never |
| 70 | + |
69 | 71 | from .cog import Cog |
70 | 72 | from .commands import Option |
71 | 73 | from .ext.commands import Cooldown |
@@ -930,7 +932,7 @@ def slash_command( |
930 | 932 | nsfw: bool = False, |
931 | 933 | options: list[Option] | None = MISSING, |
932 | 934 | parent: SlashCommandGroup | None = MISSING, |
933 | | - **kwargs: Any, |
| 935 | + **kwargs: Never, |
934 | 936 | ) -> Callable[[...], SlashCommand]: |
935 | 937 | """A shortcut decorator for adding a slash command to the bot. |
936 | 938 | This is equivalent to using :meth:`application_command`, providing |
@@ -976,7 +978,7 @@ def user_command( |
976 | 978 | name: str | None = MISSING, |
977 | 979 | name_localizations: dict[str, str] | None = MISSING, |
978 | 980 | nsfw: bool = False, |
979 | | - **kwargs: Any, |
| 981 | + **kwargs: Never, |
980 | 982 | ) -> Callable[..., UserCommand]: |
981 | 983 | """A shortcut decorator for adding a user command to the bot. |
982 | 984 | This is equivalent to using :meth:`application_command`, providing |
@@ -1018,7 +1020,7 @@ def message_command( |
1018 | 1020 | name: str | None = MISSING, |
1019 | 1021 | name_localizations: dict[str, str] | None = MISSING, |
1020 | 1022 | nsfw: bool = False, |
1021 | | - **kwargs: Any, |
| 1023 | + **kwargs: Never, |
1022 | 1024 | ) -> Callable[..., MessageCommand]: |
1023 | 1025 | """A shortcut decorator for adding a message command to the bot. |
1024 | 1026 | This is equivalent to using :meth:`application_command`, providing |
@@ -1065,7 +1067,7 @@ def application_command( |
1065 | 1067 | nsfw: bool = False, |
1066 | 1068 | options: list[Option] | None = MISSING, |
1067 | 1069 | parent: SlashCommandGroup | None = MISSING, |
1068 | | - **kwargs: Any, |
| 1070 | + **kwargs: Never, |
1069 | 1071 | ) -> Callable[..., C]: |
1070 | 1072 | """A shortcut decorator that converts the provided function into |
1071 | 1073 | an application command via :func:`command` and adds it to |
|
0 commit comments