jade.enums.EnumEncoder

class jade.enums.EnumEncoder(_dict=<class 'dict'>, preserve=False)[source]

Bases: TomlEncoder

Custom encoder for enums.

Methods

dump_enum(val)

Return the enum value converted to string.

dump_inline_table(section)

Preserve inline table in its compact syntax instead of expanding into subsection.

dump_list(v)

dump_sections(o, sup)

dump_value(v)

get_empty_table()

static dump_enum(val)[source]

Return the enum value converted to string.

dump_inline_table(section)

Preserve inline table in its compact syntax instead of expanding into subsection.

https://github.com/toml-lang/toml#user-content-inline-table