diff options
| author | Rapptz <[email protected]> | 2021-08-25 05:30:41 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-08-25 05:30:41 -0400 |
| commit | 539577a2ddd19de3d6292ad5a3a8b53b127f3824 (patch) | |
| tree | a8bbc7859663d470f62846f1fd46d5fcdd19c88e /discord | |
| parent | Fix copy_doc typing to not error due to overloaded ParamSpec (diff) | |
| download | discord.py-539577a2ddd19de3d6292ad5a3a8b53b127f3824.tar.xz discord.py-539577a2ddd19de3d6292ad5a3a8b53b127f3824.zip | |
Bring back ParamSpec in utils
Diffstat (limited to 'discord')
| -rw-r--r-- | discord/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/discord/utils.py b/discord/utils.py index b1e39dce..4360b77a 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -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 |