From cf16350107a4ffd6a48d258a47fffc0733c138b2 Mon Sep 17 00:00:00 2001 From: jb3 Date: Fri, 17 Oct 2025 18:04:11 +0000 Subject: Deploying to docs from @ python-discord/bot-core@9f0162c0869ee8e0ae158636c8f0eac96159a675 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- v10.1.0/output/pydis_core.utils.function.html | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'v10.1.0/output/pydis_core.utils.function.html') diff --git a/v10.1.0/output/pydis_core.utils.function.html b/v10.1.0/output/pydis_core.utils.function.html index 62c343bb..00455e2e 100644 --- a/v10.1.0/output/pydis_core.utils.function.html +++ b/v10.1.0/output/pydis_core.utils.function.html @@ -10,8 +10,8 @@ - + @@ -470,7 +470,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.

@@ -482,17 +482,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.

@@ -513,9 +513,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:
@@ -523,7 +523,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)]

-- cgit v1.2.3