protokolo.types module

Some typing definitions.

protokolo.types.StrPath: TypeAlias = str | os.PathLike

Anything that looks like a path.

protokolo.types.SupportedMarkup

The supported markup languages.

alias of Literal[‘markdown’, ‘restructuredtext’]

protokolo.types.TOMLType

A TOML dictionary.

alias of Mapping[str, TOMLValue]

protokolo.types.TOMLValue

All possible types for a value in a TOML dictionary.

alias of str | int | float | bool | datetime | date | None | Mapping[str, TOMLValue] | list[TOMLType]

protokolo.types.TOMLValueType: TypeAlias = str | int | float | bool | datetime.datetime | datetime.date | None | dict | list

Like TOMLValue, but using only Python primitives.