Skip to content

Commit

Permalink
Minor get_or_fetch docs fix (#1684)
Browse files Browse the repository at this point in the history
* Minor get_or_fetch docs fix
  • Loading branch information
NeloBlivion committed Oct 9, 2022
1 parent 4fc2e2c commit 18ab3af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion discord/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ def get(iterable: Iterable[T], **attrs: Any) -> T | None:


async def get_or_fetch(obj, attr: str, id: int, *, default: Any = MISSING) -> Any:
"""This is a :ref:`coroutine <coroutine>`
"""|coro|
Attempts to get an attribute from the object in cache. If it fails, it will attempt to fetch it.
If the fetch also fails, an error will be raised.
Expand Down

0 comments on commit 18ab3af

Please sign in to comment.