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

Function to_class

python/copilot/generated/rpc.py:43–45  ·  view source on GitHub ↗
(c: type[T], x: Any)

Source from the content-addressed store, hash-verified

41 assert False
42
43def to_class(c: type[T], x: Any) -> dict:
44 assert isinstance(x, c)
45 return cast(Any, x).to_dict()
46
47def from_bool(x: Any) -> bool:
48 assert isinstance(x, bool)

Callers 15

to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70
to_dictMethod · 0.70

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…