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

Method from_dict

python/copilot/generated/rpc.py:1239–1244  ·  view source on GitHub ↗
(obj: Any)

Source from the content-addressed store, hash-verified

1237
1238 @staticmethod
1239 def from_dict(obj: Any) -> '_ConnectResult':
1240 assert isinstance(obj, dict)
1241 ok = from_bool(obj.get("ok"))
1242 protocol_version = from_int(obj.get("protocolVersion"))
1243 version = from_str(obj.get("version"))
1244 return _ConnectResult(ok, protocol_version, version)
1245
1246 def to_dict(self) -> dict:
1247 result: dict = {}

Callers

nothing calls this directly

Calls 5

_ConnectResultClass · 0.85
from_boolFunction · 0.70
from_intFunction · 0.70
from_strFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected