Skip to content

Types#

Types.

All types for ongaku.

RequestT module-attribute #

RequestT = typing.TypeVar(
    "RequestT",
    str,
    int,
    bool,
    float,
    dict[str, typing.Any],
    list[typing.Any],
    tuple[typing.Any, ...],
)

Request Type.

The types you can request for.

RequestorT module-attribute #

Requestor Type.

The types to set for a requestor of a track.s

PayloadMappingT module-attribute #

PayloadMappingT: typing.TypeAlias = (
    typing.Mapping[str, typing.Any] | str | bytes
)

Payload Mapping Type.

Supports string, bytes, or a mapping.

PayloadSequenceT module-attribute #

PayloadSequenceT: typing.TypeAlias = (
    typing.Sequence[typing.Any] | str | bytes
)

Payload Sequence Type.

Supports string, bytes, or a sequence.