i_vis/core/models.py
def wrap_func(col: Union[str, Any], func_: Callable) -> Callable:
    """Wrap a function with current context of col.

    Args:
        col:
        func_:

    Returns:
    """
    if not isinstance(col, str):
        col = col.key

    def wrapped(context) -> Callable:
        return func_(context.current_parameters.get(col))

    return wrapped
Wrap a function with current context of col.

    Args:
        col:
        func_:

    Returns:
    
Wrap a function with current context of col.
Wrap a function with current context of col .
def wrap_func(col: Union[str, Any], func_: Callable) -> Callable:
    if not isinstance(col, str):
        col = col.key
    def wrapped(context) -> Callable:
        return func_(context.current_parameters.get(col))
    return wrapped
def wrap_func ( col : Union [ str , Any ] , func_ : Callable ) -> Callable : if not isinstance ( col , str ) : col = col . key def wrapped ( context ) -> Callable : return func_ ( context . current_parameters . get ( col ) ) return wrapped
Wrap a function with current context of col.
Wrap a function with current context of col .
"""Wrap a function with current context of col.

    Args:
        col:
        func_:

    Returns:
    """
None
col
Union[str, Any]
None
func_
Callable
None