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

Method from_dict

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

Source from the content-addressed store, hash-verified

14151
14152 @staticmethod
14153 def from_dict(obj: Any) -> 'PushAttachmentGitHubSide':
14154 assert isinstance(obj, dict)
14155 repo = PushGitHubRepoRef.from_dict(obj.get("repo"))
14156 path = from_union([from_str, from_none], obj.get("path"))
14157 ref = from_union([from_str, from_none], obj.get("ref"))
14158 revision = from_union([from_str, from_none], obj.get("revision"))
14159 return PushAttachmentGitHubSide(repo, path, ref, revision)
14160
14161 def to_dict(self) -> dict:
14162 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_unionFunction · 0.70
from_dictMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected