ConfigField¶
-
class
tfsnippet.utils.
ConfigField
(type, default=None, description=None, nullable=False, choices=None)¶ Bases:
object
A config field.
Attributes Summary
choices
Get the valid choices of the config value. default_value
Get the default config value. description
Get the config description. nullable
Whether or not None
is a valid value?type
Get 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
-