yawning_titan.config.item_types.str_item.StrProperties#
- class yawning_titan.config.item_types.str_item.StrProperties(_allowed_types=None, allow_null=None, default=None, options=None)[source]#
Bases:
ItemTypeProperties
The BoolProperties class holds the properties relevant for defining and validating a bool value.
Methods
An abstract method that returns the properties as a dict.
Validates a bool against the properties set in
BoolProperties
.Attributes
True if the config value can be left empty, otherwise False.
The default value.
A list of allowed values for the item.
- allow_null = None#
True if the config value can be left empty, otherwise False.
- default = None#
The default value.
- options = None#
A list of allowed values for the item.
- to_dict()#
An abstract method that returns the properties as a dict.
- Returns:
A dict.