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

Function postProcessPythonSessionEventCode

scripts/codegen/python.ts:1503–1510  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

1501};
1502
1503function postProcessPythonSessionEventCode(code: string): string {
1504 for (const [from, to] of Object.entries(PY_SESSION_EVENT_TYPE_RENAMES).sort(
1505 ([left], [right]) => right.length - left.length
1506 )) {
1507 code = code.replace(new RegExp(`\\b${from}\\b`, "g"), to);
1508 }
1509 return unwrapRedundantPythonLambdas(code);
1510}
1511
1512function pyPrimitiveResolvedType(annotation: string, fromFn: string, toFn = fromFn): PyResolvedType {
1513 return {

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…