ドキュメント

共通の型

共通の型

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 の項目からなるマッピングまたはシーケンスです。