ДокументацияTypeSafe Python SDKОбщие типы данных

Общие типы данных

Common types for TypeSafe API SDK.

Общие типы данных для TypeSafe API SDK.

export function SdkSignature({children}) {
async function copy(event) {
const button = event.currentTarget;
const code = button.parentElement.querySelector("pre code");
try {
await navigator.clipboard.writeText(code.textContent);
button.setAttribute("aria-label", "Signature copied");
button.dataset.copied = "true";
} catch {
button.setAttribute("aria-label", "Copy failed; select the signature to copy");
}
setTimeout(() => {
button.setAttribute("aria-label", "Copy signature");
delete button.dataset.copied;
}, 2000);
}
return



{children}

;
}

typesafe\_sdk.JSONValue

module-attribute

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

Значение в формате JSON. Может быть вложенным и содержать None.

typesafe\_sdk.JSONContent

module-attribute

{"JSONContent"}{" "}{"="}{" "}{"TypeAliasType"}{"("}{"\n"}{" "}{"\"JSONContent\""}{","}{"\n"}{" "}{"\"str | Mapping[str, JSONValue | None] | Sequence[JSONValue | None]\""}{","}{"\n"}{")"}{"\n"}

Обычная строка либо словарь/последовательность элементов JSONValue.