diff --git a/CHANGELOG.md b/CHANGELOG.md index a9547fbafc..1bda9a0ecc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -62,6 +62,8 @@ These changes are available on the `master` branch, but have not yet been releas ([#2624](https://github.com/Pycord-Development/pycord/pull/2624)) - Fixed `AttributeError` when accessing `Member.guild_permissions` for user installed apps. ([#2650](https://github.com/Pycord-Development/pycord/pull/2650)) +- Fixed type annotations of cached properties. + ([#2635](https://github.com/Pycord-Development/pycord/issues/2635)) ### Changed diff --git a/discord/utils.py b/discord/utils.py index fbcf9c1f31..c04ef0b0bd 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -56,7 +56,6 @@ Iterator, Literal, Mapping, - NewType, Protocol, Sequence, TypeVar, @@ -151,7 +150,7 @@ def __get__(self, instance, owner): class _RequestLike(Protocol): headers: Mapping[str, Any] - cached_property = NewType("cached_property", property) + cached_property = property P = ParamSpec("P")