Skip to content

bagof.magic._options

Classes

Options

Options(**kwargs)

Bases: SlotsBase

The resolved set of class-level options for a Magic class.

Each Magic class gets one Options instance, built from the keyword arguments on the class statement (or the @magic decorator), merged with the options inherited from base classes in MRO order. A base class's value is used unless a derived class explicitly sets its own.

See Magic for the full list of options and their defaults.

Methods:

make_default staticmethod
make_default() -> Self

Return a new Options instance populated with default values.