Some Python libraries can accept either a function or array, and distinguish between the two with isinstance(x, typing.Callable). Unfortunately this is always the case for ArrayValue:

Which means that libraries may try to treat the array as a function. Would it be possible to fix that? I'd guess that ArrayValue would need to stop inheriting from AnyValue, which defines __call__().
Some Python libraries can accept either a function or array, and distinguish between the two with

isinstance(x, typing.Callable). Unfortunately this is always the case forArrayValue:Which means that libraries may try to treat the array as a function. Would it be possible to fix that? I'd guess that
ArrayValuewould need to stop inheriting fromAnyValue, which defines__call__().