Skip to content

bagof.magic._options

Classes

Options

Options(**kwargs)

Bases: SlotsBase

The resolved class options of a Magic class.

Each Magic class has one Options instance. The instance is built from the keyword arguments of the class statement, or of the magic decorator, and merged with the options that the class inherits from its bases. A base class's value is used unless the derived class sets its own.

Magic lists every option with its default.

Methods:

make_default staticmethod
make_default() -> Self

Return a new Options instance populated with default values.