Skip to content

Commit e5b6096

Browse files
replaced NewType cached_property with functools' cached_property to fix type annotations for context atrributes
1 parent 05cf45e commit e5b6096

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def __get__(self, instance, owner):
151151
class _RequestLike(Protocol):
152152
headers: Mapping[str, Any]
153153

154-
cached_property = NewType("cached_property", property)
154+
cached_property = functools.cached_property
155155

156156
P = ParamSpec("P")
157157

0 commit comments

Comments
 (0)