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 arguments ( arguments ( Value from arguments based on a name or position. TypeError – name_or_pos isn’t a str or int. ValueError – name_or_pos does not match any argument. TypeError – name_or_pos isn’t a str or int. ValueError – name_or_pos does not match any argument. decorator_func ( decorator_func ( name_or_pos ( func ( name_or_pos ( func ( The decorator returned by decorator_func.
@@ -493,17 +493,17 @@
ExceptionException
@@ -515,18 +515,18 @@ with the wrapper replaced with the function
-
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.OrderedDict[str, Any]) – An ordered mapping of parameter names to argument values.OrderedDict[str, Any]) – An ordered mapping of parameter names to argument values.
-
-
Callable[[Callable[[OrderedDict[str, Any]], Any]], Callable[[Callable], Callable]]) – A function that must accept a callable as a parameter to which it will pass a mapping of
+Callable[[Callable[[OrderedDict[str, Any]], Any]], Callable[[Callable], Callable]]) – A function that must accept a callable as a parameter to which it will pass a mapping of
parameter names to argument values of the function it’s decorating.int | str) – The name/position of the arg to get the value from.Optional[Callable[[Any], Any]]) – An optional callable which will return a new value given the argument’s value.int | str) – The name/position of the arg to get the value from.Optional[Callable[[Any], Any]]) – An optional callable which will return a new value given the argument’s value.Callable[[Callable], Callable]
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
A mapping of parameter names to argument values.
@@ -591,9 +591,9 @@ changes won’t be reflected in the new function’s globals.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)]