types

Type aliases for poddable types.

type picopod.types.Primitive = str | int | float | bool

Primitive value types, which can also be used as table keys.

type picopod.types.DictTable = Mapping[Primitive, Value]

A key-value table.

type picopod.types.ListTable = Sequence[Value]

A table where all of the keys are numbers which increment starting from 1.

type picopod.types.Table = ListTable | DictTable

Any table, which can be a list or a dict.

type picopod.types.AnyUserdata = Userdata[int] | Userdata[float]

int or float userdata.

type picopod.types.Value = Primitive | Buffer | Table | AnyUserdata | None

Any type of poddable value.