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

Function pyDocstringLiteral

scripts/codegen/python.ts:758–764  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

756}
757
758function pyDocstringLiteral(text: string): string {
759 const normalized = text
760 .split(/\r?\n/)
761 .map((line) => line.replace(/\s+$/g, ""))
762 .join("\n");
763 return JSON.stringify(normalized);
764}
765
766function rpcResultDescription(method: RpcMethod, resultSchema: JSONSchema7 | undefined): string | undefined {
767 if (isVoidSchema(resultSchema)) return undefined;

Callers 4

pushPyRpcMethodDocstringFunction · 0.85
getOrCreatePyEnumFunction · 0.85
emitPyClassFunction · 0.85

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…