concepts.dsl.dsl_functions.FunctionOverriddenCallList#

class FunctionOverriddenCallList[source]#

Bases: list, List[Callable]

A data structure that holds multiple overridden __call__ implementations for a function.

This is only useful when we are partial evaluating a function (and when the actual function type can not be resolved.)

Methods

append(object, /)

Append object to the end of the list.

clear()

Remove all items from list.

copy()

Return a shallow copy of the list.

count(value, /)

Return number of occurrences of value.

extend(iterable, /)

Extend list by appending elements from the iterable.

index(value[, start, stop])

Return first index of value.

insert(index, object, /)

Insert object before index.

pop([index])

Remove and return item at index (default last).

remove(value, /)

Remove first occurrence of value.

reverse()

Reverse IN PLACE.

sort(*[, key, reverse])

Sort the list in ascending order and return None.