UncertainBool

class baybe.utils.boolean.UncertainBool[source]

Bases: Enum

Enum for representing uncertain Boolean values.

Public methods

from_erroneous_callable(callable_, /)

Create an uncertain Boolean from a potentially erroneous Boolean call.

Public attributes and properties

TRUE

Represents the Boolean value True.

FALSE

Represents the Boolean value False.

UNKNOWN

Indicates that the value of the Boolean cannot be determined.

classmethod from_erroneous_callable(callable_: Callable, /)[source]

Create an uncertain Boolean from a potentially erroneous Boolean call.

Return type:

UncertainBool

FALSE = 'FALSE'

Represents the Boolean value False.

TRUE = 'TRUE'

Represents the Boolean value True.

UNKNOWN = 'UNKNOWN'

Indicates that the value of the Boolean cannot be determined.