Skip to content

Commit

Permalink
Bring back ParamSpec in utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapptz committed Aug 25, 2021
1 parent 4f8e679 commit 539577a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def __get__(self, instance, owner):
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
Expand All @@ -130,6 +132,8 @@ class _RequestLike(Protocol):
headers: Mapping[str, Any]


P = ParamSpec('P')

else:
cached_property = _cached_property

Expand Down

0 comments on commit 539577a

Please sign in to comment.