engforge.typing.Options

Options(*choices, **kwargs)[source]

creates an attrs field with validated choices on init and setattr :type choices: :param choices: a list of choices that are validated on input, the first becoming the default unless it is passed in kwargs :type kwargs: :param kwargs: keyword args passed to attrs field