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 --- v11.0.0/output/pydis_core.utils.function.html | 48 +++++++++++++-------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'v11.0.0/output/pydis_core.utils.function.html') diff --git a/v11.0.0/output/pydis_core.utils.function.html b/v11.0.0/output/pydis_core.utils.function.html index 66e5b79e..4b490a33 100644 --- a/v11.0.0/output/pydis_core.utils.function.html +++ b/v11.0.0/output/pydis_core.utils.function.html @@ -10,8 +10,8 @@ - + @@ -481,7 +481,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.

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

@@ -515,18 +515,18 @@ with the wrapper replaced with the function
Parameters:
-

arguments (OrderedDict[str, Any]) – An ordered mapping of parameter names to argument values.

+

arguments (OrderedDict[str, Any]) – An ordered mapping of parameter names to argument values.

Return type:
-

Any

+

Any

Returns:

Value from arguments based on a name or position.

Raises:
@@ -539,14 +539,14 @@ with the wrapper replaced with the function
Parameters:
Return type:
-

Callable[[Callable], Callable]

+

Callable[[Callable], Callable]

Returns:

The decorator returned by decorator_func.

@@ -562,13 +562,13 @@ parameter names to argument values of the function it’s decorating.

Parameters:
    -
  • args (tuple) – The arguments to bind to func

  • -
  • kwargs (dict[str, Any]) – The keyword arguments to bind to func

  • -
  • func (Callable) – The function to bind args and kwargs to

  • +
  • args (tuple) – The arguments to bind to func

  • +
  • kwargs (dict[str, Any]) – The keyword arguments to bind to func

  • +
  • func (Callable) – The function to bind args and kwargs to

Return type:
-

OrderedDict[str, Any]

+

OrderedDict[str, Any]

Returns:

A mapping of parameter names to argument values.

@@ -591,9 +591,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:
@@ -601,7 +601,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