ValueBool

class dsviper.ValueBool(value)

Bases: object

A class used to represent a value of type bool. Seamless with a Python bool.

Or use Value.create(Type.BOOL [, True|False]).

FALSE = false
TRUE = true
static cast(value: Value) ValueBool

Return a bool or raise.

copy() ValueBool

Return a deep copy.

description(*, namespace: NameSpace | None = None) str

Return the description.

encoded() bool

Return a Python bool.

hash() int

Return the hash value.

representation() str

Return the representation.

static try_parse(string: str) ValueBool | None

Return a bool or None.

type() Type

Return the type.

type_code() str

Return the type code.