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

Method to_dict

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

Source from the content-addressed store, hash-verified

4573 return PermissionRulesSet(approved, denied)
4574
4575 def to_dict(self) -> dict:
4576 result: dict = {}
4577 result["approved"] = from_list(lambda x: to_class(PermissionRule, x), self.approved)
4578 result["denied"] = from_list(lambda x: to_class(PermissionRule, x), self.denied)
4579 return result
4580
4581# Experimental: this type is part of an experimental API and may change or be removed.
4582@dataclass

Callers

nothing calls this directly

Calls 2

from_listFunction · 0.70
to_classFunction · 0.70

Tested by

no test coverage detected