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

Method from_dict

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

Source from the content-addressed store, hash-verified

10902
10903 @staticmethod
10904 def from_dict(obj: Any) -> 'InstructionDiscoveryPath':
10905 assert isinstance(obj, dict)
10906 kind = InstructionDiscoveryPathKind(obj.get("kind"))
10907 location = InstructionLocation(obj.get("location"))
10908 path = from_str(obj.get("path"))
10909 preferred_for_creation = from_bool(obj.get("preferredForCreation"))
10910 project_path = from_union([from_str, from_none], obj.get("projectPath"))
10911 return InstructionDiscoveryPath(kind, location, path, preferred_for_creation, project_path)
10912
10913 def to_dict(self) -> dict:
10914 result: dict = {}

Callers

nothing calls this directly

Calls 7

InstructionLocationClass · 0.85
from_strFunction · 0.70
from_boolFunction · 0.70
from_unionFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected