From 0a068679f4c82a66c514c69ab1a7a569a736ed0f Mon Sep 17 00:00:00 2001 From: HassanAbouelela Date: Mon, 12 Dec 2022 18:11:20 +0000 Subject: Deploying to docs from @ python-discord/bot-core@9c728dff2351a0170b372fec76e2b5e15f8846f3 🚀 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/output/pydis_core.utils.function.html | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'main/output/pydis_core.utils.function.html') diff --git a/main/output/pydis_core.utils.function.html b/main/output/pydis_core.utils.function.html index 5420dfa8..6dc07a45 100644 --- a/main/output/pydis_core.utils.function.html +++ b/main/output/pydis_core.utils.function.html @@ -5,14 +5,14 @@ - - function - Pydis Core Latest (9.1.1) + + function - Pydis Core Latest (9.2.0) - + - + @@ -127,7 +127,7 @@
-
Pydis Core Latest (9.1.1)
+
Pydis Core Latest (9.2.0)
@@ -153,10 +153,10 @@
- Pydis Core Latest (9.1.1) + Pydis Core Latest (9.2.0) @@ -209,6 +209,10 @@ main +
  • + v9.1.1 +
  • +
  • v9.0.0
  • @@ -353,14 +357,14 @@

    Utils for manipulating functions.

    -exception GlobalNameConflictError[source]#
    +exception GlobalNameConflictError[source]#

    Bases: Exception

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

    -command_wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',), *, ignored_conflict_names=frozenset({}))[source]#
    +command_wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',), *, ignored_conflict_names=frozenset({}))[source]#

    Update the decorated function to look like wrapped, and update globals for discord.py forwardref evaluation.

    See update_wrapper_globals() for more details on how the globals are updated.

    @@ -384,7 +388,7 @@ with the wrapper replaced with the function
    -update_wrapper_globals(wrapper, wrapped, *, ignored_conflict_names=frozenset({}))[source]#
    +update_wrapper_globals(wrapper, wrapped, *, ignored_conflict_names=frozenset({}))[source]#

    Create a copy of wrapper, the copy’s globals are updated with wrapped's globals.

    For forwardrefs in command annotations, discord.py uses the __global__ attribute of the function to resolve their values. This breaks for decorators that replace the function because they have @@ -451,9 +455,7 @@ changes won’t be reflected in the new function’s globals.

    -
    - -
    +
    -- cgit v1.2.3