MCPcopy Index your code
hub / github.com/Standard-Intelligence/hertz-dev / default

Function default

utils/blocks.py:80–84  ·  view source on GitHub ↗
(*args: Optional[defaultT])

Source from the content-addressed store, hash-verified

78defaultT = TypeVar('defaultT')
79
80def default(*args: Optional[defaultT]) -> Optional[defaultT]:
81 for arg in args:
82 if exists(arg):
83 return arg
84 return None
85
86def maybe(fn):
87 @wraps(fn)

Callers 5

compute_freqs_cisMethod · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
completionMethod · 0.90

Calls 1

existsFunction · 0.85

Tested by

no test coverage detected