docs(tools): qualify the last mode-dependent claim, in the spec
`keeps a non-ASCII field name…` asserted that Code Mode omits the native schemas so nothing else carries a dropped field's name, requiredness, and type. That holds under `mode: 'code'` only; under `both` the native schemas ship alongside the SDK, as the module header says. Earlier rounds swept `py-types.ts` for this family and qualified five sites there; the spec was never in scope, so this is the family's last unqualified member rather than residue from those fixes.
This commit is contained in:
@@ -419,9 +419,10 @@ describe('renderToolsSdkPy', () => {
|
||||
// `路径` satisfies `xid_start xid_continue*`, so CPython accepts it as an
|
||||
// attribute and as the `TypedDict` key. Rejecting it would degrade the
|
||||
// whole object, dropping every SIBLING field's name, requiredness and type
|
||||
// too — and Code Mode omits the native schemas, so nothing else carries
|
||||
// them. The nested class name is derived from the field, so `camelCase`
|
||||
// has to pass the same characters through instead of splitting on them.
|
||||
// too — and under `mode: 'code'` the native schemas are omitted, so
|
||||
// nothing else carries them. The nested class name is from the field, so
|
||||
// `camelCase` has to pass the same characters through instead of splitting
|
||||
// on them.
|
||||
const tool: ToolSdkSchema = {
|
||||
name: '搜索',
|
||||
description: 'Unicode identifiers.',
|
||||
|
||||
Reference in New Issue
Block a user