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

Method from_dict

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

Source from the content-addressed store, hash-verified

108
109 @staticmethod
110 def from_dict(obj: Any) -> 'AbortResult':
111 assert isinstance(obj, dict)
112 success = from_bool(obj.get("success"))
113 error = from_union([from_str, from_none], obj.get("error"))
114 return AbortResult(success, error)
115
116 def to_dict(self) -> dict:
117 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_boolFunction · 0.70
from_unionFunction · 0.70
AbortResultClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected