mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-19 15:36:02 +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:
|
||||
from functools import cached_property as cached_property
|
||||
|
||||
from typing_extensions import ParamSpec
|
||||
|
||||
from .permissions import Permissions
|
||||
from .abc import Snowflake
|
||||
from .invite import Invite
|
||||
@ -130,6 +132,8 @@ if TYPE_CHECKING:
|
||||
headers: Mapping[str, Any]
|
||||
|
||||
|
||||
P = ParamSpec('P')
|
||||
|
||||
else:
|
||||
cached_property = _cached_property
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user