Documentação

Tipos comuns

Tipos comuns do SDK da API do TypeSafe.

typesafe_sdk.JSONValue

module-attribute

JSONValue = TypeAliasType(
    "JSONValue",
    "str | int | float | bool | Sequence[JSONValue | None] | Mapping[str, JSONValue | None]",
)

Um valor semelhante a JSON. Pode ser aninhado e conter None.

typesafe_sdk.JSONContent

module-attribute

JSONContent = TypeAliasType(
    "JSONContent",
    "str | Mapping[str, JSONValue | None] | Sequence[JSONValue | None]",
)

Uma string simples ou um mapeamento/sequência de entradas de JSONValue.