Skip to content

Commit

Permalink
replaced NewType cached_property with functools' cached_property to f…
Browse files Browse the repository at this point in the history
…ix type annotations for context atrributes
  • Loading branch information
probablyjassin committed Nov 2, 2024
1 parent 05cf45e commit e5b6096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e5b6096

Please sign in to comment.