From e5b609601cd3fb5a573c0ea1653fdf13d5604032 Mon Sep 17 00:00:00 2001 From: probablyjassin Date: Sat, 2 Nov 2024 11:05:09 +0100 Subject: [PATCH] replaced NewType cached_property with functools' cached_property to fix type annotations for context atrributes --- discord/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/utils.py b/discord/utils.py index fbcf9c1f31..29921bf5b8 100644 --- a/discord/utils.py +++ b/discord/utils.py @@ -151,7 +151,7 @@ def __get__(self, instance, owner): class _RequestLike(Protocol): headers: Mapping[str, Any] - cached_property = NewType("cached_property", property) + cached_property = functools.cached_property P = ParamSpec("P")