From cf16350107a4ffd6a48d258a47fffc0733c138b2 Mon Sep 17 00:00:00 2001
From: jb3 Bases: Bases: Raised on a conflict between the globals used to resolve annotations of a wrapped function and its wrapper. wrapped ( assigned ( updated ( ignored_conflict_names ( wrapped ( assigned ( updated ( ignored_conflict_names ( A decorator that behaves like A decorator that behaves like
@@ -482,17 +482,17 @@
ExceptionException
@@ -513,9 +513,9 @@ changes won’t be reflected in the new function’s globals.
-
Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.Sequence[str]) – Sequence of attribute names that are directly assigned from wrapped to wrapper.Sequence[str]) – Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.Set[str]) – A set of names to ignore if a conflict between them is found.Callable[[ParamSpec(_P)], TypeVar(_R)]) – The function to wrap with.Sequence[str]) – Sequence of attribute names that are directly assigned from wrapped to wrapper.Sequence[str]) – Sequence of attribute names that are .update``d on ``wrapper from the attributes on wrapped.Set[str]) – A set of names to ignore if a conflict between them is found.Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]Callable[[Callable[[ParamSpec(_P)], TypeVar(_R)]], Callable[[ParamSpec(_P)], TypeVar(_R)]]functools.wraps(),
+functools.wraps(),
with the wrapper replaced with the function update_wrapper_globals() returned.
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.
ignored_conflict_names.
Callable[[ParamSpec(_P)], TypeVar(_R)]