base#

Base class for input/output domains.

Classes#

Domain

Base class for input/output domains.

class Domain#

Bases: 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