DangerousValue
- class ase2sprkkr.common.dangerous_values.DangerousValue(value, value_type=None, validate=True)[source]
A value that bypasses the normal option validation.
Class hierarchy
Constructor
- Parameters:
value (Any)
value_type (Optional['GrammarType'])
validate (bool)
- __init__(value, value_type=None, validate=True)[source]
- Parameters:
value (Any) – A value to be stored.
value_type (Optional['GrammarType']) – A grammar type that the value should satisfy. If it is
None, the only requirement is that the value can be stringified.validate (bool) – Whether to validate the value. Values produced by the grammar have already been validated and can pass
False.
- Return type:
None