MCPcopy Create free account
hub / github.com/github/copilot-sdk / from_dict

Method from_dict

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

Source from the content-addressed store, hash-verified

1094
1095 @staticmethod
1096 def from_dict(obj: Any) -> 'CompletionsRequestRequest':
1097 assert isinstance(obj, dict)
1098 offset = from_int(obj.get("offset"))
1099 text = from_str(obj.get("text"))
1100 return CompletionsRequestRequest(offset, text)
1101
1102 def to_dict(self) -> dict:
1103 result: dict = {}

Callers

nothing calls this directly

Calls 4

from_intFunction · 0.70
from_strFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected