concepts.dsl.expression.Expression#

class Expression[source]#

Bases: ABC

Expression is an abstract class for all expressions in the DSL. An important note about Expression is that the class itself does not contain any “implementation.”

For example, the expression and(x, y, z) does not contain any information about how to compute the conjunction (e.g., taking the product of the three values). The actual implementation of the expression will be provided by the Executor classes.

Methods

cached_string([max_length])

check_arguments()

Attributes

return_type

__init__()#
__new__(**kwargs)#
cached_string(max_length=None)[source]#
Parameters:

max_length (int | None) –

check_arguments()[source]#
abstract property return_type: ObjectType | ValueType | FunctionType | Tuple[ValueType | FunctionType, ...] | None#