通用类型
机器翻译译自英文(docs.typesafe.ai)本页 11 段已全部译完
文档索引
在以下地址获取完整的文档索引:https://docs.typesafe.ai/llms.txt 使用此文件可以在进一步探索之前发现所有可用页面。
通用类型
TypeSafe API SDK 的通用类型。
typesafe_sdk.JSONValue
module-attribute
JSONValue = TypeAliasType(
"JSONValue",
"str | int | float | bool | Sequence[JSONValue | None] | Mapping[str, JSONValue | None]",
)类似 JSON 的值。可以嵌套并包含 None。
typesafe_sdk.JSONContent
module-attribute
JSONContent = TypeAliasType(
"JSONContent",
"str | Mapping[str, JSONValue | None] | Sequence[JSONValue | None]",
)纯字符串,或 JSONValue 条目的映射/序列。
AI 翻译查看英文原文