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

Function from_dict

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

Source from the content-addressed store, hash-verified

57 return x
58
59def from_dict(f: Callable[[Any], T], x: Any) -> dict[str, T]:
60 assert isinstance(x, dict)
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)

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…