mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-23 03:16:48 +00:00
Bring back ParamSpec in utils
This commit is contained in:
parent
4f8e67998a
commit
539577a2dd
@ -121,6 +121,8 @@ class _cached_property:
|
|||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
from functools import cached_property as cached_property
|
from functools import cached_property as cached_property
|
||||||
|
|
||||||
|
from typing_extensions import ParamSpec
|
||||||
|
|
||||||
from .permissions import Permissions
|
from .permissions import Permissions
|
||||||
from .abc import Snowflake
|
from .abc import Snowflake
|
||||||
from .invite import Invite
|
from .invite import Invite
|
||||||
@ -130,6 +132,8 @@ if TYPE_CHECKING:
|
|||||||
headers: Mapping[str, Any]
|
headers: Mapping[str, Any]
|
||||||
|
|
||||||
|
|
||||||
|
P = ParamSpec('P')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
cached_property = _cached_property
|
cached_property = _cached_property
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user