From 4497a82c504818d61ab18c5251ae2bc42bae279e Mon Sep 17 00:00:00 2001 From: ChrisLovering Date: Sat, 23 Nov 2024 18:47:50 +0000 Subject: Deploying to docs from @ python-discord/bot-core@bdaaa2e76d4cb32843754757532ef8d73ac97761 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v9.8.0/output/pydis_core.utils.function.html | 36 +++++++++++++++++----------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'v9.8.0/output/pydis_core.utils.function.html') diff --git a/v9.8.0/output/pydis_core.utils.function.html b/v9.8.0/output/pydis_core.utils.function.html index 00c12bab..9a724a25 100644 --- a/v9.8.0/output/pydis_core.utils.function.html +++ b/v9.8.0/output/pydis_core.utils.function.html @@ -5,13 +5,13 @@ - + function - Pydis Core v9.8.0 - + @@ -319,6 +319,14 @@ v9.0.0 +
  • + v11.5.0 +
  • + +
  • + v11.4.0 +
  • +
  • v11.3.1
  • @@ -446,7 +454,7 @@
    exception GlobalNameConflictError[source]¶
    -

    Bases: Exception

    +

    Bases: Exception

    Raised on a conflict between the globals used to resolve annotations of a wrapped function and its wrapper.

    @@ -458,17 +466,17 @@
    Parameters:
      -
    • wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.

    • -
    • assigned (Sequence[str]) – Sequence of attribute names that are directly assigned from wrapped to wrapper.

    • -
    • updated (Sequence[str]) – Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.

    • -
    • ignored_conflict_names (Set[str]) – A set of names to ignore if a conflict between them is found.

    • +
    • wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.

    • +
    • assigned (Sequence[str]) – Sequence of attribute names that are directly assigned from wrapped to wrapper.

    • +
    • updated (Sequence[str]) – Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.

    • +
    • ignored_conflict_names (Set[str]) – A set of names to ignore if a conflict between them is found.

    Return type:
    -

    Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]

    +

    Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]

    Returns:
    -

    A decorator that behaves like functools.wraps(), +

    A decorator that behaves like functools.wraps(), with the wrapper replaced with the function update_wrapper_globals() returned.

    @@ -489,9 +497,9 @@ changes won’t be reflected in the new function’s globals.

    Parameters:
      -
    • wrapper (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap.

    • -
    • wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.

    • -
    • ignored_conflict_names (Set[str]) – A set of names to ignore if a conflict between them is found.

    • +
    • wrapper (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap.

    • +
    • wrapped (Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.

    • +
    • ignored_conflict_names (Set[str]) – A set of names to ignore if a conflict between them is found.

    Raises:
    @@ -499,7 +507,7 @@ changes won’t be reflected in the new function’s globals.

    and is not in ignored_conflict_names.

    Return type:
    -

    Callable[[ParamSpec(_P)], TypeVar(_R)]

    +

    Callable[[ParamSpec(_P)], TypeVar(_R)]

    @@ -577,7 +585,7 @@ changes won’t be reflected in the new function’s globals.

    - + -- cgit v1.2.3