ConfigField¶
-
class
tfsnippet.utils.ConfigField(type, default=None, description=None, nullable=False, choices=None)¶ Bases:
objectA config field.
Attributes Summary
choicesGet the valid choices of the config value. default_valueGet the default config value. descriptionGet the config description. nullableWhether or not Noneis a valid value?typeGet the value type. Methods Summary
validate(value[, strict])Validate the config value. Attributes Documentation
-
choices¶ Get the valid choices of the config value.
-
default_value¶ Get the default config value.
-
description¶ Get the config description.
-
type¶ Get the value type.
Methods Documentation
-