Represents a function f to which transforms are to be applied.
f (Callable) – the function to be transformed.
f_transformed (Callable) – transformed function.
transforms (tuple[tuple[Callable, tuple[Hashable, ...]], ...]) – a tuple of (gen, gen_static_args) tuples representing transformations to apply to f. Here gen is a generator function and gen_static_args is a tuple of static arguments for the generator. See description at the start of this module for the expected behavior of the generator.
stores (tuple[Store | EqualStore | None, ...]) – a list of out_store for the auxiliary output of the transforms.
params (tuple[tuple[str, Any], ...]) – a tuple of (name, param) tuples representing extra parameters to pass as keyword arguments to f, along with the transformed keyword arguments.
in_type (core.InputType | None) – optional input type
debug_info (DebugInfo) – debugging info about the function being wrapped.
Methods
__init__
(f, f_transformed, transforms, ...)
call_wrapped
(*args, **kwargs)
Calls the transformed function
populate_stores
(stores)
Copy the values from the stores into self.stores.
wrap
(gen, gen_static_args, out_store)
Add another transform and its store.
Attributes
f
f_transformed
transforms
stores
params
in_type
debug_info
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4