function

utils.check_lazy

def check_lazy(obj: typing.Any, checks: typing.Iterable[Callable] | Callable) -> bool

Check if an object is a lazy call to a target callable.

Parameters

NameTypeDescription
objanyThe object to check.
targetcallable or strThe target callable to check against.

Returns

bool — Whether the object is a lazy call to the target callable.

Source: laco/utils.py:192