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

Method to_dict

python/copilot/generated/rpc.py:211–217  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

209 return AccountGetCurrentAuthResult(auth_errors, auth_info)
210
211 def to_dict(self) -> dict:
212 result: dict = {}
213 if self.auth_errors is not None:
214 result["authErrors"] = from_union([lambda x: from_list(from_str, x), from_none], self.auth_errors)
215 if self.auth_info is not None:
216 result["authInfo"] = from_union([lambda x: (x).to_dict(), from_none], self.auth_info)
217 return result
218
219# Experimental: this type is part of an experimental API and may change or be removed.
220@dataclass

Callers

nothing calls this directly

Calls 3

from_unionFunction · 0.70
from_listFunction · 0.70
to_dictMethod · 0.45

Tested by

no test coverage detected