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

Function pyOptionalResolvedType

scripts/codegen/python.ts:1520–1526  ·  view source on GitHub ↗
(inner: PyResolvedType)

Source from the content-addressed store, hash-verified

1518}
1519
1520function pyOptionalResolvedType(inner: PyResolvedType): PyResolvedType {
1521 return {
1522 annotation: `${inner.annotation} | None`,
1523 fromExpr: (expr) => `from_union([from_none, ${wrapParser(inner)}], ${expr})`,
1524 toExpr: (expr) => `from_union([from_none, ${wrapSerializer(inner)}], ${expr})`,
1525 };
1526}
1527
1528function pyAnyResolvedType(): PyResolvedType {
1529 return {

Callers 1

resolvePyPropertyTypeFunction · 0.85

Calls 2

wrapParserFunction · 0.85
wrapSerializerFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…