Source code for corvix.types

"""Shared type aliases used across Corvix modules."""

from __future__ import annotations

from uuid import UUID

[docs] type UserId = str | UUID
[docs] type JsonScalar = str | int | float | bool | None
[docs] type JsonValue = JsonScalar | JsonObject | JsonArray
[docs] type JsonObject = dict[str, JsonValue]
[docs] type JsonArray = list[JsonValue]