MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / first_list

Function first_list

graphify/callflow_html.py:115–120  ·  view source on GitHub ↗

Return the first list from a set of possible schema locations.

(*values)

Source from the content-addressed store, hash-verified

113
114
115def first_list(*values) -> list:
116 """Return the first list from a set of possible schema locations."""
117 for value in values:
118 if isinstance(value, list):
119 return value
120 return []
121
122
123def to_float(value, default: float = 0.0) -> float:

Callers 1

load_graphFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected