From ed9890abd8c07d6f414e273139e8715f3917b7fc Mon Sep 17 00:00:00 2001 From: Numerlor Date: Sun, 18 Sep 2022 20:41:47 +0200 Subject: use paramspec from typing the package now requires python 3.10 --- botcore/utils/cooldown.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'botcore/utils/cooldown.py') diff --git a/botcore/utils/cooldown.py b/botcore/utils/cooldown.py index ee65033d..5fb974e2 100644 --- a/botcore/utils/cooldown.py +++ b/botcore/utils/cooldown.py @@ -25,14 +25,11 @@ _ArgsList = list[object] _HashableArgsTuple = tuple[Hashable, ...] if typing.TYPE_CHECKING: - from botcore import BotBase import typing_extensions - P = typing_extensions.ParamSpec("P") - P.__constraints__ = () -else: - P = typing.TypeVar("P") - """The command's signature.""" + from botcore import BotBase +P = typing.ParamSpec("P") +"""The command's signature.""" R = typing.TypeVar("R") """The command's return value.""" -- cgit v1.2.3