文件導航

常見型別

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 條目組成的對映或序列。