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

Method from_dict

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

Source from the content-addressed store, hash-verified

2226
2227 @staticmethod
2228 def from_dict(obj: Any) -> 'InstructionsDiscoverRequest':
2229 assert isinstance(obj, dict)
2230 exclude_host_instructions = from_union([from_bool, from_none], obj.get("excludeHostInstructions"))
2231 project_paths = from_union([lambda x: from_list(from_str, x), from_none], obj.get("projectPaths"))
2232 return InstructionsDiscoverRequest(exclude_host_instructions, project_paths)
2233
2234 def to_dict(self) -> dict:
2235 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_unionFunction · 0.70
from_listFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected