diff options
author | 2023-06-04 20:34:14 +0100 | |
---|---|---|
committer | 2023-06-04 20:34:14 +0100 | |
commit | 1a362c04eb4d5d8f3c531a590d73cf5d7300ace8 (patch) | |
tree | accbe4d840b036dcc9502eed395f19400f5ad9a3 /pydis_core/utils/cooldown.py | |
parent | Merge pull request #175 from python-discord/log-when-waiting-for-guild-to-be-... (diff) | |
parent | Add changelog entry for ruff migration (diff) |
Merge pull request #176 from python-discord/ruff-migration
Ruff migration
Diffstat (limited to 'pydis_core/utils/cooldown.py')
-rw-r--r-- | pydis_core/utils/cooldown.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pydis_core/utils/cooldown.py b/pydis_core/utils/cooldown.py index 5129befd..0fe7102a 100644 --- a/pydis_core/utils/cooldown.py +++ b/pydis_core/utils/cooldown.py @@ -26,6 +26,7 @@ _HashableArgsTuple = tuple[Hashable, ...] if typing.TYPE_CHECKING: import typing_extensions + from pydis_core import BotBase P = typing.ParamSpec("P") @@ -34,7 +35,7 @@ R = typing.TypeVar("R") """The command's return value.""" -class CommandOnCooldown(CommandError, typing.Generic[P, R]): +class CommandOnCooldown(CommandError, typing.Generic[P, R]): # noqa: N818 """Raised when a command is invoked while on cooldown.""" def __init__( |