MCPcopy Index your code
hub / github.com/github/copilot-sdk / from_list

Function from_list

python/copilot/generated/rpc.py:63–65  ·  view source on GitHub ↗
(f: Callable[[Any], T], x: Any)

Source from the content-addressed store, hash-verified

61 return { k: f(v) for (k, v) in x.items() }
62
63def from_list(f: Callable[[Any], T], x: Any) -> list[T]:
64 assert isinstance(x, list)
65 return [f(y) for y in x]
66
67def to_enum(c: type[EnumT], x: Any) -> EnumT:
68 assert isinstance(x, c)

Callers 15

from_dictMethod · 0.70
to_dictMethod · 0.70
from_dictMethod · 0.70
to_dictMethod · 0.70
from_dictMethod · 0.70
to_dictMethod · 0.70
from_dictMethod · 0.70
to_dictMethod · 0.70
from_dictMethod · 0.70
to_dictMethod · 0.70
from_dictMethod · 0.70
to_dictMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…