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

Function toPyFieldName

scripts/codegen/python.ts:1134–1136  ·  view source on GitHub ↗
(propName: string, propSchema: JSONSchema7, ctx: PyCodegenCtx)

Source from the content-addressed store, hash-verified

1132}
1133
1134function toPyFieldName(propName: string, propSchema: JSONSchema7, ctx: PyCodegenCtx): string {
1135 return toSnakeCase(isPyDurationProperty(propSchema, ctx) ? stripDurationMillisecondsSuffix(propName) : propName);
1136}
1137
1138function escapeRegExp(value: string): string {
1139 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");

Callers 3

emitPyClassFunction · 0.85

Calls 3

isPyDurationPropertyFunction · 0.85
toSnakeCaseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…