base#

Base class for input/output domains.

Classes#

Domain

Base class for input/output domains.

class Domain#

Bases: tmlt.core.utils.format.Formattable, abc.ABC

Base class for input/output domains.

property carrier_type: type#
Abstractmethod:

Return type:

type

Returns the type of elements in the domain.

validate(value)#

Raises an error if value is not in the domain.

Parameters:

value (Any)

Return type:

None

__contains__(value)#

Returns True if value is in the domain.

Parameters:

value (Any)

Return type:

bool

format()#

Return a human-readable multi-line description of this object.

Return type:

str