src/use/modules/install_utils.py
def _apply_aspect(
    thing,
    check,
    pattern,
    decorator: Callable[[Callable[..., Any]], Any],
    aspectize_dunders=False,
) -> Any:
    """Apply the aspect as a side-effect, no copy is created."""
    for name, obj in thing.__dict__.items():
        if not aspectize_dunders and name.startswith("__") and name.endswith("__"):
            continue
        if check(obj) and re.match(pattern, name):
            if "VERBOSE" in os.environ:
                log.debug(f"Applying aspect to {thing}.{name}")
            thing.__dict__[name] = decorator(obj)
    return thing
Apply the aspect as a side-effect, no copy is created.
Apply the aspect as a side-effect, no copy is created.
Apply the aspect as a side - effect no copy is created .
def _apply_aspect(
    thing,
    check,
    pattern,
    decorator: Callable[[Callable[..., Any]], Any],
    aspectize_dunders=False,
) -> Any:
    for name, obj in thing.__dict__.items():
        if not aspectize_dunders and name.startswith("__") and name.endswith("__"):
            continue
        if check(obj) and re.match(pattern, name):
            if "VERBOSE" in os.environ:
                log.debug(f"Applying aspect to {thing}.{name}")
            thing.__dict__[name] = decorator(obj)
    return thing
def _apply_aspect ( thing , check , pattern , decorator : Callable [ [ Callable [ ... , Any ] ] , Any ] , aspectize_dunders = False , ) -> Any : for name , obj in thing . __dict__ . items ( ) : if not aspectize_dunders and name . startswith ( "__" ) and name . endswith ( "__" ) : continue if check ( obj ) and re . match ( pattern , name ) : if "VERBOSE" in os . environ : log . debug ( f"Applying aspect to {thing}.{name}" ) thing . __dict__ [ name ] = decorator ( obj ) return thing
Apply the aspect as a side-effect, no copy is created.
Apply the aspect as a side - effect no copy is created .
"""Apply the aspect as a side-effect, no copy is created."""
thing
check
pattern
decorator
Callable[[Callable[..., Any]], Any]
aspectize_dunders